Can I run PeerTube by forwarding from a subdomain to an IP address?

I’m trying to set up a PeerTube instance, mostly for personal use, and the part I got stuck with is the hostname.

I have a VPS with an IP address, and a domain with a completely different provider, where I could create a subdomain and forward it to the IP address.

I’ve read somewhere that running a PeerTube instance with just an IP isn’t possible, but what do I set as hostname in the configuration, then? The subdomain, or the IP?

And where do I forward the subdomain to? Do I have to forward to a certain port?

Best,
N

Nevermind, I registered a new domain and pointed it to the VPS by modifying the DNS entry …