Question: are sockets and ports the same?
Answer: Both Socket and Port are the terms used in Transport Layer. A port is a logical construct assigned to network processes so that they can be identified within the system. A socket is a combination of port and IP address. ... The same port number can be used in different computer running on same software.