How to access my app via ip without specify port?

Hi, I have a Dokku app that uses Django (don’t know if that’s important).

When I type my url on browser I get a “It works” page, but when I push I get something like: –> Application deployed: http://9*...*5:49157

But when pushed an update it was like: –> Application deployed: http://9*...*5:49159

So, how can I make it, so, doesn’t matter how many times I push, it remains in same port (otherwise I won’t be able to set a domain name).

It would be perfect if you could tell me how could I make it so I didn’t have to type the port, just the url in browser and still see my code.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

To have a persistent URL you need to set up DNS first. There isn’t a way to have a persistent port number with Dokku. <br> <br>First you need to set up two A records: <br> <br> IN A your.ip.address <br>* IN A your.ip.address <br> <br>Then edit the file “/home/dokku/VHOST” on your droplet to contain “” Now you app will become available at: <br> <br>