How to get a public URL?

I don't want localhost because I can't access it locally.
No description
17 Replies
nerdylive
nerdylive7mo ago
Did you use my template or what @sugarUnderflow try the explore page
digigoblin
digigoblin7mo ago
You need to make your app bind to 0.0.0.0 and not localhost, otherwise it can't be accessed publicly.
sugarUnderflow
sugarUnderflowOP7mo ago
I used an empty tensorflow and cuda container and install swarm UI on it Ok
nerdylive
nerdylive7mo ago
Ohh
justin
justin7mo 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
justin7mo ago
for other port info
sugarUnderflow
sugarUnderflowOP7mo 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
justin7mo 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
nerdylive7mo ago
ye the buttons always links
sugarUnderflow
sugarUnderflowOP7mo ago
lol I used ngrok. The setup in runpod didn't made sense to me.
digigoblin
digigoblin7mo ago
It effectively does the same kind of thing as ngrok anyway
sugarUnderflow
sugarUnderflowOP7mo ago
i couldn't get it to work. in ngrok I have to never setup anything. Just do everything in terminal 3 commands
digigoblin
digigoblin7mo ago
With RunPod proxy there are zero commands, just add a port to your pod
sugarUnderflow
sugarUnderflowOP7mo ago
yes I did that but did't work. Maybe I did something wrong
digigoblin
digigoblin7mo ago
You definitely did something wrong, because it works perfectly
sugarUnderflow
sugarUnderflowOP7mo ago
yeah.
kalebbroo
kalebbroo7mo 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