R
RunPod4mo ago
krytie

Exposed Port 8888

I'm not running Jupyter, but I've left 8888 exposed as I'm running another service on that port. However I cannot connect to 8888 remotely, only locally on the machine. Is there any other setting I need to configure?
8 Replies
ashleyk
ashleyk4mo ago
Yes, bind to 0.0.0.0 and not 127.0.0.1.
krytie
krytie4mo ago
Do you mean bind my service to 0.0.0.0 ? It already is
No description
ashleyk
ashleyk4mo ago
Then how are yu connecting to it? Add HTTP port 8888 to your pod and you should be able to connect to it.
krytie
krytie4mo ago
This is what is set
No description
krytie
krytie4mo ago
what's missing from this?
ashleyk
ashleyk4mo ago
Thats fine, you should be able to connect, otherwise your application is broken. Nothing anyone can do, you have to fix it.
krytie
krytie4mo ago
So the service is not accesible via the IP, but rather through a convoluted dns scheme https://{POD_ID}-{INTERNAL_PORT}.proxy.runpod.net . Might be useful if this was actually displayed in the interface!
ashleyk
ashleyk4mo ago
Might be useful if you didn't make incorrect assumptions. If you want to use an IP and external port then expose it as TCP and not HTTP, but then you need to ensure that your pod has a public IP and you also need to use the external port mapping. HTTP and TCP ports always work like this, so this is on you and nobody else for making incorrect assumptions.