Рет қаралды 1,684
At its core, NAT is a method of mapping private IP addresses to a public IP address. Whenever you send data through the internet, it travels as IP packets which have headers that contain information about the packet's source and destination addresses and some other details. Here is where NAT comes into play, it alters the IP address within this header while the packet passes through your router. Firewalls also play a major role in this. This gives rise to how we know where to contact machines and once that information is obtained, we actually traverse NAT via UDP.
STUN and TURN servers are vital to this. Which also explains why truly P2P connections are so difficult based on the type of NAT which a router is using.
Attributions:
All emojis designed by OpenMoji - the open-source emoji and icon project. License: CC BY-SA 4.0
Wireless router icons created by Smashicons - Flaticon (www.flaticon.c...)
Wifi Router Image on Yellow Background obtained on Pexels - www.pexels.com...
References:
en.wikipedia.o...
en.wikipedia.o...
en.wikipedia.o...
tailscale.com/...
www.zerotier.c...
• NAT, firewalls and WebRTC
• Understanding the STUN...
aws.amazon.com...
toonk.io/aws-i...
tty.neveragain...
-----------------------
Find me on:
Twitter: / lemonadevibe