Artificial intelligent assistant

Sending request to local computer from anywhere Few days ago I have made an application on raspberrypi that turn on the alight when you send to it an http request " Secondly I have made an Android application that sends that request to it. Everything works fine when both devices are in the same network. My question is: how i can send this request from any other network. How I have to connect or how make route from my phone to this raspberry pi?

You can configure port forwarding on your router. So for example port 5600 on the WAN IP would be forwarded to your LAN rspi, port 8080. Then anybody connecting to your external IP:5600 (assigned by your ISP provider) would actually connect to rspi:8080. It would help to have a static external IP in this case, or a DynDNS type of service. Another option is to configure a RemoteForward ssh tunnel from your rspi to some external machine with ssh service under your control, with something like:


ssh -R 5600:localhost:8080 external_server_ip

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 87039d2f0de3c1a963ea2a8e3151a5fe