Localhost is the default name used to establish a connection with a computer. The IP address is usually 127.0.0.1. A complete range of ports (0-65535) is available to applications on the computer to be used in conjunction with localhost.