Depending on the service, you totally can, provided they include some way to recognize them. For example, the first few bytes of SSH are unique, so I made a simple TCP server that would forward traffic to an HTTP(S) server or SSH server depending on those bytes.
Comment on What are the benefits of a server having multiple public IP addresses?
catloaf@lemm.ee 2 days agoFor http(s), yes. Other services that don’t support host routing, which is most of them, no.
sugar_in_your_tea@sh.itjust.works 1 day ago
kn33@lemmy.world 2 days ago
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.