Discussion topic: Cannot connect to 127.0.0.1:5500
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Message posted on 10 Jul 2024 11:44 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report post
Cannot connect to 127.0.0.1:5500
I am working on a website and I use Live Preview which opens port 5500 and successfully connect my browser to the address 127.0.0.1:5500 and visualize the website.
However, I cannot connect my phone on the same network to it, with Chrome mobile saying "127.0.0.1 refused to connect". Now before I was on Vodafone and it always worked correctly, so I am sure it's a setting in the router that is blocking this. What can I disable to let my devices connect to this port?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
All Replies
Message posted on 11 Jul 2024 06:56 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report post
Re: Cannot connect to 127.0.0.1:5500
@ttoommxx 127.0.0.1 is a special loopback address to enable your device to see its own output it does not go vis the router. This link explains more see https://www.lifewire.com/network-computer-special-ip-address-818385
Unless your phone is running the web server it wont work. You could use the internal IP address of the device running the server which will be in the range 192.168.0.2 to 192.168.0.254.
65inch Sky Glass, 3 Sky Streaming Pucks, Sky Ultrafast + and Sky SR213(white Wifi Max hub) main Wifi from 3 TP-Link Deco M4 units in access point mode
Message posted on 11 Jul 2024 07:36 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report post
Re: Cannot connect to 127.0.0.1:5500
But why not? It's was working perfectly fine before with the Vodafone router, how come? Just want to understand what is going on
Message posted on 11 Jul 2024 07:44 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report post
Re: Cannot connect to 127.0.0.1:5500
@ttoommxx that I cant explain but the fact remains the loopback address only works on the device running the server.
65inch Sky Glass, 3 Sky Streaming Pucks, Sky Ultrafast + and Sky SR213(white Wifi Max hub) main Wifi from 3 TP-Link Deco M4 units in access point mode
Message posted on 11 Jul 2024 09:10 AM - last edited: 11 Jul 2024 09:13 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report post
Re: Cannot connect to 127.0.0.1:5500
As @Chrisee indicates, that's the reserved localhost IP address and isn't intended to be reachable from any other device.
Putting that into the Chrome mobile instance is telling the phone to look at itself (and it's not answering ; )
BT Halo 3+ Ultrafast FTTP (500Mbs), BT Smart Hub 2
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page