Windows – Can’t access localhost from computer running on same network

browserlocalhostwindows

I'm working on two computers on the same network. Computer A has an app working on localhost:4444. However, I can't access it from the browser of Computer B.

Here is my situation:

  • I pinged it's IP and I'm getting successful responses.
  • I've tried accessing through the browser: http://192.168.X.X:4444
  • I'm currently sharing files across both computers via the same network successfully.

Can anyone please help me make this work?

Best Answer

I know this is an older question, but @PimpJuiceIT answer worked for me in a very similar situation, so full credit to @PimpJuiceIT

  1. Open an elevated command prompt (press windows, type "cmd", right click on "Command prompt" and run as administrator)

  2. Type in the following code, but replace the "4444" with the port you need to access

  3. netsh advfirewall firewall add rule name="TCP Port 4444" dir=in localport=4444 protocol=TCP action=allow

  4. press enter, you should get a confirmation text.

  5. Test to ensure you can now access the app through network.

Related Question