docker icon indicating copy to clipboard operation
docker copied to clipboard

localhost:3000 is misleading

Open asdf4w3t5 opened this issue 1 year ago • 2 comments

When you set NEXT_PUBLIC_WEBAPP_URL= to your devices IP address e.g. 192.168.1.x or whatever, it will say it is listening on 0.0.0.0:3000 which is accurate.

However, within the .env config NEXT_PUBLIC_WEBAPP_URL= needs to be set to your TLD example.com etc.

When you do this, it says it is listening on localhost:3000 however that isn't true as you can still connect to it via the routeable LAN IP so it is listening on 0.0.0.0:3000 still and not only localhost otherwise it would only respond to localhost and nothing else. Similarly if it was listening to 127.0.0.1 it wouldn't respond if you connected to 192.168.1.x

So anyway it works how it is, but it says the information wrong.

You can see I am correct with the command ss -antlp as well image

asdf4w3t5 avatar Feb 27 '24 10:02 asdf4w3t5

This is a docker issue: https://docs.docker.com/network/packet-filtering-firewalls/

voska avatar Feb 29 '24 17:02 voska

Docker influences the STDOUT text output by the software?

asdf4w3t5 avatar Feb 29 '24 23:02 asdf4w3t5