How to point a subdomain to a port?

Hi everyone, I’m currently experimenting with Node-JS, and made simple API with express.js that shows the time of the server. I host it on a Raspberry Pi which already has a NGINX website on port 80, so the API is hosted on port 8080.

So my question is: Can I point to mypublicip:8080 (when port 8080 is forwarded on my router of course)? And if not, is it possible to use

Thanks in advance!

Kind regards,

A post was merged into an existing topic: How can i dns port 8080 or any other port then 80?