Comment on What are the benefits of a server having multiple public IP addresses?
pelya@lemmy.world 1 week ago
The one use case is running STUN/TURN server for NAT hole punching, that requires two separate servers, or one server with two IP addresses. You will only need that to run masterserver for games that support hope punching, or to run VoIP telephony / teleconference server.
Link@rentadrunk.org 1 week ago
Why can’t you run the STUN/TURN server on the same IP?
pelya@lemmy.world 1 week ago
Because you won’t determine the type of NAT during hole punching. This requires the client sending two UDP packets to two different IP addresses, then comparing their source addresses on the server.
Normally yes, you can just assume that two clients you are trying to connect both have port restricted cone NAT, and run the hole punching algorithm, and if the connection fails after ten seconds, show message to the users ‘Error 418: your router is a teapot’.