Question: what is the difference between port and host?
Answer: Everyone seems to focus on the host part of your questions. Ports are used to be able to run several servers (for example for different purposes such as file sharing, web serving, printing, etc) from the same machine (one single IP address). Localhost generally refers to the machine you're looking at.