I have a application which is running in my laptop as localhost:3000/xyz. My laptop and smartphone both are using the same WiFi server.

I am trying to access my desktop localhost in my smartphone using the ip address like - but I am getting error as too long to respond or access denied

What is the wrong here? Or what is the correct way to access?

By the way:

my laptop shows the details like this on ipconfig:

IPv4 Address. . . . . . . . . . . :
Subnet Mask . . . . . . . . . . . :
Default Gateway . . . . . . . . . :

my smartphone shows like this:

Ip address :
Subnet mask :

Localhost don't need wi-fi (It's not even sending the data out to the network). If you cut the internet the localhost will still be there. As far as I know you cannot access to your localhost from another device. 192.168 etc. is your local network not your localhost.


Localhost is accessable even if the firewall is active on your PC blocking all incoming connections from your smartphone. So deactivate the firewall to test at first.

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.