I have an app (sveltekit) running inside and would like to access it from other devices on my local network.
I can access it normally from the host machine on localhost:3000.
I want to access it somehow from another machine on the local network. Is this possible? Sveltekit cli has --host flag, which outputs the following:
$ svelte-kit dev --host
local: http://localhost:3000
network: http://172.17.0.3:3000
How do I access that network url from a different device on the local network?
OS: Pop OS
VSCode: 1.63.0
Docker: Latest stable version.
Docker Installed using repository. Running in rootless mode.
-host
you are already given the IP address to yourlocal
network which you can use to connect from your phone, if your phone is connected over same wifi router. however, you may also need to expose yourport 3000
in your OS's firewall else no one can connect.