'Android NetworkRequest Builder Cannot Access Local Server
I'm using the NetworkRequest.Builder to establish a network connection with a RaspberryPi acting as a hotspot (code). The issue is that the network A: doesn't bridge to internet and B: doesn't allow connection to a server on the RaspberryPi.
The RaspberryPi is correctly configured as an AccessPoint and is bridging to allow internet access. This has been successfully tested via laptop and phone. Note this does work if manually connecting via Android Settings to the AP, but not programmatically.
I believe the issue is .removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) but without this, I cannot discover the network.
How do I achieve the effective result of manually connecting via Android Settings, without all this needless filtering and feature reduction..
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
