Re: ESP8266 accessed from any Wi-Fi through android
Posted: Thu Feb 02, 2017 5:37 am
The 192.168.x.x address range is what is called a "non-routable address". It is valid only within a local area network (LAN). At home, you have one, and only one, external IP address, which is visible to anyone on the Internet. You can't use the 192.168.x.x from outside your LAN. Almost everyone in the world who has a LAN will be using 192.168.x.x addresses inside their home. The Internet cannot decide which one you mean when you try to connect to one of those addresses.
From outside, you can connect only to your external address, provided by your Internet Service Provider (ISP).
If you connect from outside to that external address, your router needs to know which of your internal servers is the intended destination. That is where port forwarding comes in. You must tell your router something like this:
"If you receive a connection for port 80, please forward it to 192.168.1.134 port 80."
Then, the connection from outside will go to your ESP.
If you want more details, search the web for "Network Address Translation" or "NAT".
From outside, you can connect only to your external address, provided by your Internet Service Provider (ISP).
If you connect from outside to that external address, your router needs to know which of your internal servers is the intended destination. That is where port forwarding comes in. You must tell your router something like this:
"If you receive a connection for port 80, please forward it to 192.168.1.134 port 80."
Then, the connection from outside will go to your ESP.
If you want more details, search the web for "Network Address Translation" or "NAT".