Can I specify a port when adding a record upon creating a domain?

I am pointing my GoDaddy domain to my DigitalOcean VPS. In DigitalOcean, I created a domain in the DNS section.

However, I tried to add a record A with IP Address like x.x.x.x:8080 but the error will say the “The IP address did not match the ipv4 format”.

Is there a way I can specify my IP address in any of the records to point to an IP address with port?

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.

No, you can’t, that’s not how DNS works, neither the web. You need to use standard ports (80 or 443 for SSL).

Maybe if you specify more about your system we can help you with a solution.