>>22
>>20
I'm kinda sure this is trolling, but fuck it.
The name of the procedure is Port Address Translation or ip-masquerading. It is an extension of the normal Network Address Translation which can only translate one ip-address of the inner network to one ip-address of the outer network and can't connect multiple hosts to one outer address at the same time.
This network address translation changes the ip-Address of the Source- or Destination-Host in the IP-Header of the packets.
PAT extends this concept to the use of sockets (ip + Port). Every Socket of an inner host can be connected to one Socket of the outer address:
192.168.0.1 :3333 <-> PAT <-> 213.5.5.5 :1
192.168.0.2 :2222 <-> PAT <-> 213.5.5.5 :2
192.168.0.3 :2222 <-> PAT <-> 213.5.5.5 :3
192.168.0.3 :4444 <-> PAT <-> 213.5.5.5 :4