IP Address
Why can I open the page on my computer but others cannot?
Why can I open the page on my computer but others cannot?
localhost always points to the device making the request. In this example the dev service runs on the computer and listens on its local port; the phone is not running it, so the phone's localhost cannot reach the computer.
The dev service runs on the computer at 192.168.1.20:3000 on the LAN; localhost points to whichever device makes the request.
127.0.0.1: only this machine: localhost and 127.0.0.1 mean this very computer; anyone else using the address reaches their own machine.
LAN address: routed within a network: Private addresses such as 192.168.x.x and 10.x.x.x can be routed within their network; the service must also listen on a reachable interface, and firewall and network rules must allow the connection.
A public address: potentially reachable from the internet: A public address can be routed from the internet, but connections still depend on ports, service listening, firewalls, and other access rules; a domain name resolves to an address.
The local service runs on localhost:3000 and my colleague cannot reach it. Tell me this machine's LAN address and confirm the dev server listens on all interfaces rather than localhost only; if public access is needed, explain where to deploy.