LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   socket (https://www.linuxquestions.org/questions/linux-general-1/socket-4175693164/)

linuly 04-05-2021 09:43 AM

socket
 
hi,
when i access with ssh the remote server then on my client is creating a socket with a port (i.e.56678) and on server a socket on port 22.
then ethernet package sent over from client to server and vice versa contain port 56678 and 22.correct?

smallpond 04-05-2021 02:28 PM

Packets from client to server will have source port 56678, destination port 22. Packets the other way will be the reverse. Port is used to route the packet to the correct socket.


All times are GMT -5. The time now is 05:28 PM.