How to access my localhost from another PC in LAN?

Glories picture Glories · Apr 4, 2012 · Viewed 102.2k times · Source

I am using WAMP server to run my website. I am using Windows 7.

I created LAN between 2 PC and I want to access my localhost from the second PC.
Note that I am not using Internet connection so I couldn't use IP address.

Please, give me your suggestion.

Answer

Abbas Uddin picture Abbas Uddin · Jul 23, 2012

You have to edit httpd.conf and find this line: Listen 127.0.0.1:80

Then write down your desired IP you set for LAN. Don't use automatic IP.
e.g.: Listen 192.168.137.1:80

I used 192.167.137.1 as my LAN IP of Windows 7. Restart Apache and enjoy sharing.