This is just a general question.
In TCP/IP when you set up a connection between two points you do a 3 way hand shake.
Do you have to re do this every time you change the source port and/or destination port?
I.e lets say you set up a connection from ip A to ip B and source port s to source port d. Now you want to send a packet from source port s to a new source port e. Do you have to establish another connection here again?
Or do you only establish the connection when you first encounter the ip addresses?
THANKS GOT IT
A connection in TCP is identified by the 4-tuple (source-ip, source-port, destination-ip, destination-port). Therefore, connecting to a different port on the same machine requires you to establish a new TCP connection.
Consider that it is possible, through NAT and other routing tricks, for requests to different ports on the same IP address to go to different machines anyway.