How Do I Pass IP Address and Port Number as URL?

How to Specify a Port Number in a URL

To pass a URL with an IP address and port number, include both in the URL. For example: http://10.5.90.948:71. The browser will attempt a connection to the IP address on the specified port. By default, a browser connects to port 80. The port number can be changed in server settings. When accessed by IP address instead of domain name, include a Host header with the domain to access a shared hosting site properly. Specify the port number after the IP address, separated by a colon. For example: http://192.168.1.102:81. Common web server ports are 80 for HTTP and 443 for HTTPS. Other ports may indicate non-standard configurations. Port numbers in URLs override default port assumptions. To fully specify connections, URLs require the protocol, IP address or domain, and port when non standard.

How to Use an IP Address as a URL

To pass a URL with an IP address and port number, include both in the URL. For example: http://10.5.90.948:71. The browser will attempt a connection to the IP address on the specified port. By default, a browser connects to port 80. The port number can be changed in server settings. When accessed by IP address instead of domain name, include a Host header with the domain to access a shared hosting site properly. Specify the port number after the IP address, separated by a colon. For example: http://192.168.1.102:81. Common web server ports are 80 for HTTP and 443 for HTTPS. Other ports may indicate non-standard configurations. Port numbers in URLs override default port assumptions. To fully specify connections, URLs require the protocol, IP address or domain, and port when non standard.

Leave a Comment