21

What is the proper term for (example) hostname.tld:433 (hostname:portnumber)?

It is not just hostname, and it is not really a URL either :) same goes for 10.0.0.1:3306 etc.

23

IP address and port pair is called, Socket Address

Pair of socket addresses (10.0.0.1:123, 192.168.0.1:123) may also be called 4-tuple or 5-tuple if the protocol is specified as well (10.0.0.1:123, 192.168.0.1:123 UDP)

  • 1
    This is more true in the programming/systems world and not always as relevant in networking. In networking the IP address and port/protocol are generally distinct and specific values, and not used as a single value. – YLearn Jun 17 '14 at 15:45
9

I've been writing a lot of network code over the years, and the word "endpoint" seems to be the term for "a specific port on a specific IP address".

Have a look at the Boost documentation as well as the Microsoft documentation:

http://www.boost.org/doc/libs/1_38_0/doc/html/boost_asio/reference/ip__tcp/endpoint.html

http://msdn.microsoft.com/en-us/library/bbx2eya8(v=vs.110).aspx

1

If your use case covers the optional 'authentication' section, then this would be called an "authority".

[A URI] comprises:

...

  • An authority part, comprising:

    • An optional authentication section of a user name and password, separated by a colon, followed by an at symbol (@)
    • A "host", consisting of either a registered name (including but not limited to a hostname), or an IP address. IPv4 addresses must be in dot-decimal notation, and IPv6 addresses must be enclosed in brackets ([ ]).
    • An optional port number, separated from the hostname by a colon

...

en.wikipedia.org/wiki/Uniform_Resource_Identifier

It is formalized in RFC 3986 - Uniform Resource Identifier (URI): Generic Syntax

The authority component is preceded by a double slash ("//") and is terminated by the next slash ("/"), question mark ("?"), or number sign ("#") character, or by the end of the URI.

authority   = [ userinfo "@" ] host [ ":" port ]
1

According to the DOM/Web API it is simply host.

The host property of the URL interface is [...] the hostname, and then, if the port of the URL is nonempty, a ':', and the port of the URL.

You can see this in a browser console:

url = new URL('http://example:8080/path')
url.hostname  // "example"
url.host      // "example:8080"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.