How to get a public URL?

I don't want localhost because I can't access it locally.
No description
17 Replies
nerdylive
nerdylive6mo ago
Did you use my template or what @sugarUnderflow try the explore page
digigoblin
digigoblin6mo ago
You need to make your app bind to 0.0.0.0 and not localhost, otherwise it can't be accessed publicly.
sugarUnderflow
sugarUnderflowOP6mo ago
I used an empty tensorflow and cuda container and install swarm UI on it Ok
nerdylive
nerdylive6mo ago
Ohh
justin
justin6mo ago
As digi said u need to bind to 0.0.0.0 + also https://docs.runpod.io/pods/configuration/expose-ports
Expose ports | RunPod Documentation
Exposing ports on your pod to the outside world: Learn how to expose ports via RunPod's Proxy or TCP Public IP, and discover the benefits and limitations of each method, including symmetrical port mapping requests.
justin
justin6mo ago
for other port info
sugarUnderflow
sugarUnderflowOP6mo ago
https://{POD_ID}-{INTERNAL_PORT}.proxy So, I just have to put my internal localhost port inside INTERNAL_PORT and this should work?
justin
justin6mo ago
assuming u are hosting on 0.0.0.0 + the port is exposed then yes its how the jupyter notebook in runpod’s base template are able to be accessed too Even if the port says “not ready” the ui just doesn’t always update cause the app usually gets started after u start the pod, but the button through runpod gui, or directly to the url should work
nerdylive
nerdylive6mo ago
ye the buttons always links
sugarUnderflow
sugarUnderflowOP6mo ago
lol I used ngrok. The setup in runpod didn't made sense to me.
digigoblin
digigoblin6mo ago
It effectively does the same kind of thing as ngrok anyway
sugarUnderflow
sugarUnderflowOP6mo ago
i couldn't get it to work. in ngrok I have to never setup anything. Just do everything in terminal 3 commands
digigoblin
digigoblin6mo ago
With RunPod proxy there are zero commands, just add a port to your pod
sugarUnderflow
sugarUnderflowOP6mo ago
yes I did that but did't work. Maybe I did something wrong
digigoblin
digigoblin6mo ago
You definitely did something wrong, because it works perfectly
sugarUnderflow
sugarUnderflowOP6mo ago
yeah.
kalebbroo
kalebbroo6mo ago
Try this template https://runpod.io/console/deploy?template=u7mlkrmxq3&ref=c6jd6jj0 - Port 2254. works fine for me. @sugarUnderflow :upvote_green:
Want results from more Discord servers?
Add your server