Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot access wamp server on local network

Tags:

apache

wamp

I want to host a website on my local network. For some reason I can only access wamp in my local computer.

I have 2 computers in my network. Both computer A and computer B have wamp server installed. when I type the ip address of computer A from computer B I am able to connect to it. But when I do it the other way around it does not work! In other words when I type the ip address of computer B from computer A the browsers says: server at 192.168.0.120 is taking to long to respond.

Things that I have done in order to solve the problem on computer B: (remember I want to connect to computer B from computer A)

1) turn off the firewall

2) Uninstall wamp and reinstall it.

3) turn off the anti-virus.

4) turn off windows firewall

5) Place wamp online and after putting it online restart all services

after doing all those steps I still cannot connect to it from computer B!

I have not chaged any ini file plus I have uninstall it and install it again so why is it not possible to connect to it!? I have used wamp for the last 3 years and I have never experienced this.

Also wamp is the only web server that I have installed on this computer. I don't have IIS nor any other web server installed on my computer.

like image 497
Tono Nam Avatar asked Nov 21 '11 21:11

Tono Nam


People also ask

Why localhost is not working in WAMP?

Right click on My Computer icon -> Properties Go to Device Manager Click on View menu and chooseShow hidden devices Now from the list choose Non-Plug and Play devices Double click HTTP -> go to Driver For Type choose Disabled Restart your computer After your computer boots up you should be able to start up WAMP server.

How can I access WAMP server from mobile?

The simplest way to get round this is: The simplest of these is to use the IP Address of the PC running the WAMPServer(Apache) server and a specific port number. So thats a different port number for each of our sites we want to use from a phone.

Where is WAMP localhost?

Install and start the WAMP server. Make sure that your wamp icon is green, if it's not green then it's not active. Open any browser and type localhost or 127.0. 0.1 on the address bar and you will see your WAMP server dashboard page.


2 Answers

Turn off your firewall for port 80 from any address. Turn off 443 if you need https (SSL) access. Open the configuration file (http.conf) and find the lines that say:

Allow from 127.0.0.1

Change them to read

Allow from all

Restart the wampserver. It will now work. Enjoy!!

like image 155
John E Pace II Gostrath Avatar answered Oct 04 '22 19:10

John E Pace II Gostrath


Perhaps your Apache is bounded to localhost only. Look in your apache configuration file for:

Listen 127.0.0.1:80

If you found it, replace it with:

Listen 80

Then restart Apache.

(More info about Apache Binding)

like image 35
Thiago Curvelo Avatar answered Oct 04 '22 20:10

Thiago Curvelo