My VPS provider is running a promotion where I can get up to 5 additional public IPv4 addresses for a one-time cost of $25 each. I have always only used a single public IP address per VPS. Would there be any advantage of having additional public IP addresses?
I know some people do not consider a VPS self-hosting, but this is the most relevant community I could think of and the question is also applicable for homelabs as well.
You can run two different services on same port, but different ip …
Not really that important anymore, with caddy or nginx it’s easy to get around that for http or https …
Kids seem to think host name based routing is "new’… It worked fine in the 2000s with Apache.
It is a lot simpler nowadays. Download Caddy, put a 2 line config and you are good to go.
I guess that’s “a lot simpler” than 6 lines of config?
by factor of 3 obviously…
300% optimise! Give this coder a raise!
For http(s), yes. Other services that don’t support host routing, which is most of them, no.
Most things people self host are either torrent clients, HTTP(s) or are game servers. The first one can pick a port arbitrarily. The second can do host routing. The third - some of them support SRV records so you can direct the client to an arbitrary port. It’s becoming less common to need multiple public IPv4 addresses.
You got a lot of relevant answers so I want to point out something else:
You’re hosting your own services. By yourself. Fuck everyone with a broom who tries to gatekeep that. And I don’t mean wooden side first.
Seriously, your question is on point here from my perspective and as long as it has a connection to running services by your own I personally would love more diversity in hosting solutions.
Personally, I’d love to see people share more about their provider agnostic opentofu deployment or someone who went all in on AWS lambdas for weird stuff.
You can run a service on the same port with less processing overhead than a reverse proxy. Additionally it provides you some benefit in domain separation. For $25 I’d pick up one or two, couldn’t hurt to have in the pocket and there are only so many of them afterall.
You can ping yourself
Ping me yourself, you coward!


