Reputation: 29571
I am required to implement a p2p communicator and read about nat hole punching. There are a few questions I don't quite understand:
Upvotes: 0
Views: 520
Reputation: 59634
The main purpose of a server is for helping to detect how private addresses are translated into public adresses, and this is only visible from outside the LAN.
- Do I really require a server if I know the public IP address and destination of my peer?
No.
- In real life scenario, does it really work and what are some network policies that may cause it to fail
Unless the port your are trying to reached is bloqued by a firewall, there should be no issue if you know the public address of your peer.
- For Skype, why does it optionally also require 443 and 80 if theoretically works for any Ports?
Because those ports are usually open (i.e., not blocked by NATs/Firewall), while others are not necessarily open.
Upvotes: 1