Take the 2-minute tour ×

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.

share|improve this question
Computers on a LAN still get IP addresses, the Internet doesn't really have anything to do with it. Unless you're using a crossover cable or something. We need more details to answer your question. –  Madbreaks Apr 4 '12 at 20:47

3 Answers 3

You have to edit httpd.conf

Find this line: Listen Then write down your desired IP you set for LAN. Don't use automatic ip. e.g.: Listen

I used as my LAN IP of Windows 7

Restart Apache and enjoy sharing.

share|improve this answer
or do: Listen 80 to use all your networkcards –  Erwinus May 15 '13 at 4:54

Actualy you don't need an internet connection to use ip address. Each computer in LAN has an internal IP address you can discover by runing

ipconfig /all

in cmd.

You can use the ip address of the server (probabily something like 192.168.0.x or 10.0.0.x) to access the website remotely.

If you found the ip and still cannot access the website, it means WAMP is not configured to respond to that name ( what did you call me? That's not my name. I'm Localhost ) and you have to modify ....../apache/config/httpd.conf

Listen *:80
share|improve this answer

IP can be any LAN or WAN IP address. But you'll want to set your firewall connection allow it.

Device connection with webserver pc can be by LAN or WAN (i.e by wifi, connectify, adhoc, cable, mypublic wifi etc)

You should follow these steps:

  1. Go to the control panel
  2. Inbound rules > new rules
  3. Click port > next > specific local port > enter 8080 > next > allow the connection>
  4. Next > tick all (domain, private, public) > specify any name
  5. Now you can access your localhost by any device (laptop, mobile, desktop, etc).
  6. Enter ip address in browser url as 123.23.xx.xx:8080 to access localhost by any device.

This IP will be of that device which has the web server.

share|improve this answer

Your Answer


