أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
NAT is useful when you don't have enough IP address what you can do is instead of giving New IP to each host you can give one use one address outside the "Network" and you can have multiple addresses inside the network.
Like in our home network we connect multiple host (i.e. smart phones and pcs) with one router now google "my ip address" what you will see is your ip address for outside world now go to "terminal/cmd" and see your ip which is your NAT (inside network) not visible to outside.Now what if you run out private ip addresses or ant to use same private ip for multiple host at that time PAT comes in picture like 10.0.0.2 want to Give this ip to two hosts at that time you can give this ip and different port number for different host i.e. 10.0.0.2:2000 and 10.0.0.2:3000.
NAT stands for network address translation in which one-to-one network translation done ( One private IP address translate to one public IP address).
PAT stands for port adress translation in which many private IP address mapped to one public IP address using port numbers tag.
NAT (Network Address Translation) uses a pool of public addresses t. PAT (Port Address Translation) uses a single outside public address and maps multiple inside addresses to it using different port numbers.
NAT requires a one-to-one relationship when translating IP addresses. While PAT registered IP address and port number combination.
I understand that NAT is based on IPs and PAT is based on dynamic ports or whatever to the hosts on the private network
NAT (Network Address Translation) uses a pool of public addresses that are mapped one-to-one to the private (or "inside") addresses, keeping the port number intact.
PAT (Port Address Translation) uses a single outside public address and maps multiple inside addresses to it using different port number