Why do programs like TeamViever or MsTeams work through NAT or without dedicated IP, but programs like games with direct online p2p functionality don’t?

162 views

I understand that programs like MS Teams have their own severs with dedicated IPs that are used as “relays” to get around NAT restrictions. However, some programs like RADMIN manage to work p2p through NAT without needing a server . How does it all work?

In: 20

4 Answers

Anonymous 0 Comments

In order for NAT to function properly the host computer has to initiate contact with anyone else who wants to connect to it. That way, the router sees the outgoing traffic and knows where to send follow-up incoming traffic.

Older software that used P2P connections would have the host computer just sit there listening for other computers to try to connect to it. Because the host wasn’t initiating contact, the router had no idea where to send incoming traffic unless you manually configured the router to forward all traffic on a specific port to a specific computer.

Modern P2P software has a server that the host initiates connection to. That server then forwards the host information on any other computers that want to connect to it, at which point the host initiates contact with those other computers.

In other words, you still need a server to handle matchmaking between the host and client computers, even if the host and clients are directly communicating after that point.

You are viewing 1 out of 4 answers, click here to view all answers.