Why my localhost is not working?

Why my localhost is not working?

When you use “localhost”, it can get matched by a ServerAlias or ServerName configuration. If that configuration is bad, (eg: wrong wwwroot), then it won’t work with the localhost, but might with an IP. So check your httpd. conf for localhost .

Why my xampp localhost is not working?

Resolve Apache port conflicts by changing your listening port to 8080. Include the listening port in the address when accessing localhost. Change your MySQL port to 3307 if another application is blocking the default port 3306.

Do you have trouble accessing localhost via IP address?

I haven’t had trouble using my local IP address to access locally hosted sites when my computer is on other networks, only on my home network. Do you have any idea what needs to change?

Can you listen on local server while localhost?

Start nc on the server listening on an unused port and then connect from another machine — this will verify iptables and routes are correct. My guess is that you’re listening on the localhost only. And I found that the port 80 (in my case) was not in the list. This fixed the issue. Thanks for contributing an answer to Ask Ubuntu!

Can you access a server via an IP address?

Do you have any idea what needs to change? If you can access a server running on your own machine via 127.0.0.1 (or localhost) but not via the computer’s ip address, this means that the server software is configured to listen on the localhost interface only.

Why is my server unable to connect using public IP?

Not sure why it is happening on localhost, though. The last answer I found is to change your server-ip in your server.properties to localhost and see if that works. rycao18 I’ve only received that error when I was on a public IP and couldn’t connect to my friends server on the inside network (some kind of firewall built into their router maybe).