I wanted to play and make my own home server. No js calmly responds to a request inside the local network so that it also responds to a request from the Internet. as I understood it is necessary to "forward ports in the router." I tried to do this in every way from the guides, but alas, nothing comes of it. Moistle of the TL-WR941N / TL-WR941ND router
- oneI see some information, but not a question. Ask a question correctly, please. Tell us what you did and how. - ilyaplot
|
1 answer
Open this guide http://rudevice.ru/tp-link/tp-link-tl-wr941nd
Down there find the "port forwarding". At the very last picture you need to fill in the data.
- Service port - the port under which it will stick out, most likely it is 80 or 8080.
- The Internal Port is the port under which the nodejs server hangs on the internal network. Most likely it is 80 or 8080.
- IP adresses are the ip address of your nodejs server inside your network. You know it for sure.
- Protocol - do not touch anything or choose tcp.
All save and ready.
Now, go to any service of recognition of your ip ( http://myip.ru/ , http://myip.com.ua , http://ipinfo.io ) and watch your ip. Then we ask a friend to open the Service port (the very first field to be filled in) via this ip and see.
Possible problems:
- external ip server will not be accessible from the local network. On some routers it is.
- Your provider may have double nat and you will not even have a gray ip. In this case, most likely only the users of your own provider will be able to reach you (but this is not a fact)
- Your provider has a firewall configured and they do not allow incoming connections (this can be explained in different ways, for example, security or other legal signs).
|