1

BACKSTORY:

One day, I looked up my private IP address in the URL because I was bored. What I found out was that it led to my localhost (the XAMPP dashboard), so I tried to type in my IP address from another device, but my computer either blocked the connection or didn't respond.

WHY THIS IS NOT A DUPLICATE:

In the other question, OP was able to access localhost from other devices, but he/she/other wanted to access a database, but I just can't access localhost from another device.

QUESTION:

So, how do I get my computer to respond/not block the other device?

EDIT - INFO:

IP: 192.168.56.1, Operating System: Windows 10 64-bit.

  • It may help us understand if you put the IP addresses in your question, and maybe tell us the what this url you are mentioning is. As for what I think you are asking, check out which nic the process/port is bound to. you can do this on linux (as root) with netstat -ntlup or in windows powershell (as admin) netstat -abno | findstr LISTENING, and then finding the XAMPP process that you are seeing. if its Local Address is 127.0.0.1, it can only be accessed by the local machine. you will have to look at XAMPP configuration options to make it remotely accessible. – Frank Thomas Aug 26 '18 at 18:49
  • this thread may help you: stackoverflow.com/questions/5524116/… – Frank Thomas Aug 26 '18 at 19:24
  • "In the other question" What other question? There are 383k questions on Super User alone ... – DavidPostill Aug 26 '18 at 19:51
  • Edited it so that it includes the link – MilkyWay90 Aug 26 '18 at 21:34
  • So when you run the powershell command I posted, do you see an httpd process on the port in your url (or port 80 if there is no port on the url)? what is its local address? – Frank Thomas Aug 26 '18 at 23:23
0

Create an Inbound Port Rule

In Windows 10 you need to specify each port that's being opened.

You can follow this detailed instructions to do so:

https://docs.microsoft.com/en-us/windows/security/identity-protection/windows-firewall/create-an-inbound-port-rule

Use Dynamic DNS Services

Then, if you want to access the computer from outside the LAN (for anyone with Internet access) you can use Dynamic DNS's.

There's even a supposedly Free service in here, you should see the video. This type of software has been around for decades already but have never used such, I prefer to use static IP's for my servers.

  • For the dynamic DNS part, could everybody just type the IP address? – MilkyWay90 Aug 27 '18 at 0:53
  • Also, sorry to say, but the answer does not work. – MilkyWay90 Aug 27 '18 at 1:09
  • 1
    Note that if you want to access the server from outside your LAN, then you must forward ports on your router. – Frank Thomas Aug 28 '18 at 15:53
  • @milkyway90 to your question, yes... When all required ports are open. – DavidTaubmann Aug 28 '18 at 16:53
  • @MilkyWay90 To resolve your problem, maybe you should check for instructions specifically for XAMPP under Windows 10, like this 2: pureinfotech.com/install-xampp-windows-10 and cloudways.com/blog/… – DavidTaubmann Aug 28 '18 at 17:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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