Answer explained
Classify ports on the basis of location.
On the basis of location, ports are of two types: (1) Inland ports — away from the coast, linked to the sea by a river or canal, e.g. Kolkata, Manchester. (2) Out ports — deep-water ports built away from a congested main port to serve it, e.g. Piraeus for Athens.