I am trying to get my Arduino/ESP8266 project to work when I am off my local IP (192.168.xxx.xxx), similar to the way Shark and iRobot vacuums connect and can be accessed when not at home.
The vacuum examples do not use port forwarding to map an external IP to the local IP address, so I am trying to figure out how this works.
I am thinking I need to write a Windows service and pass the IP address from an Android or iOS app, but there must be a way to map the external IP to the IP of the ESP8266.
I am placing the ESP8266 in Station Mode, should this be in Host Mode?
sendAndWaitForResponse("AT+RST", "ready", 100);
sendAndWaitForResponse("AT+CWMODE=1", "OK", 100);
sendAndWaitForResponse("AT+CWJAP=\"NETGEAR48\",\"cloudytree929\"", "OK", 100);
sendAndWaitForResponse("AT+CIPMUX=1", "OK", 100);
sendAndWaitForResponse("AT+CIPSERVER=1,80", "OK", 100);
In Host Mode, I could set the IP address and port, but it would still have to route through my router.
Any help regarding this is very much appreciated.