title: How can I route OkHttp request to specific network interface?
body: <p>What I'm trying to achieve is to bypass mobile/3G connection or at least make it second choice when I try some network request. I need this in order to get smallest possible delay when making HTTP request to the device which is connected to AP on my device.</p>
  
  <p>I've tried making custom SocketFactory where I've explicitely set local address of the wifi network interface (wlan0) and passing it to the OkHttpClient. From the logs/debug I've figured out that OkHttpClient didn't use that local address and routing I've thought it would use but tried to contact proxy (APN setting for 3G connection).</p>
  
  <p>Is there any way to bypass unnecessary 3g call (probably tried to resolve host address)?</p>