Summary

ref

Port:  

In simple language,  “Port” is a number used by a particular software to identify its data coming from internet. Each software like, skype, chrome, youtube has its own port number and thats how skype or youtube knows which internet data is for itself.

Socket:

“IP address and Port " together is called “Socket”. It is used by another computer to send data to one particular computer’s particular software. IP address is used to identify the computer and Port is to identify the software such as IE, Chrome, Skype etc.

Another good answer: ref

Think of your machine as an apartment building:

  • A port is an apartment number.
  • A socket is the door of an apartment.
  • An IP address is the street address of the building.