Hi, i'm working on an iOS app that starts a HTTP Server when it loads. This server runs on localhost (port 8081). When the app is running, other computers on the same network are able to access this webserver.
Furthermore, all of the devices on are connected to the iPhone personal hotspot, so network traffic is actually going through the device.
The problem is that some devices on the local network block any local network connections. So, for example 127.0.0.1:8081
to access the server running on the iPhone will be blocked.
I'm trying to find a way around it, and I saw that some people were able to get around this problem by using a local VPN Tunnel or Local Proxy to basically allow routing some host from a connected device over to the server running on 127.0.01:8081
I've looked into the following APIs NEAppProxyProvider
but I'm not how to essentially intercept all traffic and route traffic to 127.0.0.1:8081
based on rules.
Some examples would be helpful.