About
An endpoint is the final address of a service defined by:
- a host
- and a port number.
Glossary
In the web, the endpoint is commonly referred as the host but in the network community, a host is just a server.
Example Javascript:
console.log("The endpoint is: "+window.parent.location.host);
Net(work)
In network, this is a socket known also the bind address.
Example in Java:
SocketAddress bindAddress = SocketAddress.inetSocketAddress(4043, "localhost");
Usage
The endpoint is defined:
- in the authority part of an URI
- in the host http header
And if you add the TCP or UDP protocol, you defines a socket.