Answer the question
In order to leave comments, you need to log in
How to watch a local site from other machines from the local network?
There is a standard home network - a router and devices (computers, laptops). One of the computers is running a local Winginx web server. It has several sites. How can I access these sites through a browser from other devices on this local network?
Apparently, somehow you need to configure Winginx itself and also forward a special type of route in the router settings. Write in detail step by step or skinte links instructions.
Answer the question
In order to leave comments, you need to log in
- make sure that the router passes traffic between network clients (usually it is)
- make sure that the web server listens on all interfaces (0.0.0.0) and not 127.0.0.1.
- walk on the ip of the computer with the webserver
No separate nginx configuration is required. The problem is getting the request to nginx. There are two common solutions.
1 hairpin NAT;
2. special resolution setting in the local network; this can be done in two more ways:
2a. register on local computers in the hosts file the local address of the web server and FQDN (domain name);
2b. configure the internal DNS server so that it gives the same that would be written in hosts in paragraph 2a.
If there is not enough experience in setting up networks, then I recommend starting with option 2a - everything is elementary there (the downside is that you need to register on each computer separately); on other options, a lot needs to be said, but all this can be googled. Option 1 just depends on what kind of router you have.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question