calcom / docker

The Docker configuration for Cal.com is an effort powered by people within the community. Cal.com, Inc. does not provide official support for Docker, but we will accept fixes and documentation. Use at your own risk.
MIT License
611 stars 319 forks source link

localhost:3000 is misleading #335

Open asdf4w3t5 opened 4 months ago

asdf4w3t5 commented 4 months ago

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

voska commented 4 months ago

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

asdf4w3t5 commented 4 months ago

Docker influences the STDOUT text output by the software?