hostname



Last revision July 20, 2004

The hostname field immediately follows the service or resource type field in the URL and specifies the network location of the server.

Normal Internet naming syntax, such as for email, is used. For example, pangea is in the network domain .stanford.edu so the hostname field to reach pangea is //pangea.stanford.edu/. Note that the leading double slash (//) and the trailing slash (/) are actually part of the hostname field, although the trailing slash may be omitted if there is no filepathname specification to follow.

The TCP/IP protocols used on the Internet define standard port numbers to request various services from computers. If your http or other service is on an non-standard port (either because it is a private service or an experimental one), then you can add the port number to the hostname specification, using a colon to separate the two. For example, the http service is normally found on port 80. If you were running an experimental http server on pangea on port 1080, for example, you could refer to it with the URL:

http://pangea.stanford.edu:1080/...

Comments or Questions?