39

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.

FelixHJ
  • 493
  • 1
  • 4
  • 7

5 Answers5

35

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)

vhu
  • 572
  • 6
  • 10
  • 2
    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
11

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

Carlos
  • 219
  • 1
  • 5
  • See https://stackoverflow.com/questions/47488910/whats-the-difference-between-endpoint-and-socket/47490978 -- an endpoint is a more general term than a socket; there are are non-TCP endpoints. – David J. Jun 26 '21 at 04:01
  • Note that "endpoint" has a different meaning in web services. In web services, an endpoint is a complete URL. – Cameron Hudson Feb 03 '24 at 01:59
5

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"
Tamlyn
  • 151
  • 1
  • 2
2

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 ]
Carl G
  • 121
  • 2
0

I would call generically describe (IPAddress, Port) as an IP Service.

If used in DNS context, then look up DNSSRV records.

If used in Socket context, then it is a Socket Address.

Another context could be use in a regular expression used in filtering Flows.

Or use in router or firewall in an access-list.