How to make Web servers respond from request from another computer on your LAN

You may just want to use a PHP or ASP.NET script off windows pc on your LAN that's running apache or IIS. If you use the browser on the same machine running web server, typing http://locahost or http://127.0.0.1 is just fine. 

However, when you go to another computer on the LAN, you might not see the pages web server is serving from the machine that it is installed and running.

This is caused by the firewall of your LAN.

Open HTTP Port
  • Right-click your LAN. Click Status -> Properties. Click Advanced tab. Under Windows Firewall tab, click Settings. Click Exceptions tab.
  • Click on ‘Add Port..’. Name it HTTP. Enter 80 as the port number and select TCP radio button. Click OK.

Notes:
  • If you install two web servers on the same machine. You can also add another port like HTTP for name, enter 8080 as port number, select TCP and click OK.
Your web server can now respond to non-local web access requests.

No comments:

Post a Comment

Blog Archive

About Me

My photo
I am a software developer with roughly 5 years of experience in developing end-to-end solutions in C#, Java, C/C++, PHP and HTML/CSS/Javascript. At the moment, I am joining the Professional Doctorate in Engineering degree program in Software Technology at Eindhoven University of Technology. My areas of particular interest include software design, data structures and algorithms, problem solving, software security, embedded system, machine learning, and data science.