Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I installed XAMPP and I started the served. When I type "localhost" in the browser URL it is working fine. When I type my machine IP address where the XAMPP resides that is "172.31.1.3" it is not working.

Can any one help me in this regard.

share|improve this question

1 Answer 1

The Apache server needs to be told what ethernet devices to listen for connections. It's probably by default only listening on the localhost, you can add entries to so that it will also listen on 172.31.1.3.

Take a look at the Apache docs.

You'll probably need to do the following:

  • Stop the XAMPP server, if it is running already.
  • Open the file [XAMPP Installation Folder]/apache/conf/httpd.conf.
  • Search for the string *Listen 80 *(I'm assuming that your XAMPP was using the port 80.
  • Otherwise, just search for the string 'Listen'). This is the port number which XAMPP uses.
  • Change this 80 to 172.31.1.3:80.
  • Now save and re-start XAMPP server and you are done.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.