Reputation: 12159
Scenario: (device: Pixel OS: Android 7.1.1, (also Galaxy 7, Android 7.0)
I want to force the App to make the http://192.168.1.1:80/test request on the local wifi network even if it does not have external internet capabilities.
I am using Retrofit and Okhttp, and also have tried: org.apache.http.impl.client.AbstractHttpClient
Any ideas?
Upvotes: 1
Views: 1174
Reputation: 2912
If 192.168.1.0/24 is a locally connected network, it should be routed automatically. If not, you'll need a routing table entry, e.g. 192.168.1.0/24 -> 192.168.99.1 (if your Wifi is 192.168.99.0/24 and .1 is the router in between).
Upvotes: -1