What is an endpoint?

Endpoint is one of the most overloaded words in IT. Security teams mean laptops and servers, developers mean API addresses, and network engineers mean an IP address and port. All three meet on any server you run.

What are the three meanings?

A device endpoint is any machine at the edge of a network that people or programs use: laptops, phones, desktop computers and servers. An API endpoint is a specific address where a service accepts requests, such as https://api.example.com/v2/orders. A network endpoint is the pair of an IP address and a port at one end of a connection, such as 203.0.113.18 port 443. The meanings are related: a server is a device endpoint that exposes network endpoints, behind which it serves API endpoints.

MeaningExampleMain concern
DeviceA staff laptop, a rented serverPatching, malware, disk encryption
APIPOST /v2/orders on an HTTPS hostAuthentication, input validation, rate limits
Network203.0.113.18:443 over TCPWhich ports are open and to whom

Why does endpoint security matter?

Because most intrusions start at an endpoint. A phished laptop holding an SSH key, a server with an unpatched service, or an API that trusts input it should check gives an attacker a foothold. Endpoint security tools for devices watch processes and files for suspicious behaviour; on servers the same idea applies through patching, minimal installed software, audit logs and file integrity checks. Your own administrators' laptops are endpoints into your servers, so protect the keys on them with passphrases and hardware tokens where possible.

How do I see which network endpoints a server exposes?

List listening sockets on the server and compare with what you expect. Anything bound to 0.0.0.0 or [::] accepts connections on every address, so it is public unless the firewall blocks it.

ss -tulpn | awk 'NR==1 || /LISTEN|UNCONN/'
nmap -Pn -p- --min-rate 2000 203.0.113.18

Run the scan from another machine you own, since only that shows the outside view. A database listening on all addresses is a common surprise; bind it to 127.0.0.1 or a WireGuard address instead.

What makes an API endpoint well designed?

Clear names, versioning and predictable behaviour. Resources are nouns, methods carry the action, versions live in the path or a header so old clients keep working, and errors return meaningful status codes. On the security side, every endpoint authenticates the caller, validates input, limits request rates and logs who did what. Health endpoints, such as /healthz, help load balancers and monitors decide whether a backend is ready, and should not reveal internal details.

curl -sS -o /dev/null -w '%{http_code} %{time_total}s\n' https://api.example.com/healthz

How do endpoints relate to IP addresses on our servers?

Each machine comes with one public IPv4 address and an IPv6 block. You can run many API endpoints behind the single IPv4 using a reverse proxy that routes by host name and path, with TLS certificates per name through SNI. If you want separate network endpoints per service, the IPv6 block gives you as many addresses as you could need. We do not sell extra IPv4 addresses, and one well-configured proxy makes them unnecessary for most designs.

How do I monitor endpoints?

From outside and inside. External probes from another data centre check that each public endpoint answers with the right status in reasonable time and that certificates are not near expiry. Internal metrics record request counts, error rates and latency per endpoint, so you can see which one slowed down. Logs tie a failing request to the client and input that caused it. Our Monitoring servers page describes a self-hosted setup.

How do endpoints change over a service's life?

They multiply, and old ones linger. A new API version adds paths, a debug port gets opened for a week, a staging copy of the site appears on a spare address. Keep an inventory of every public endpoint with its owner and purpose, review it each quarter against a fresh outside scan, and retire anything nobody claims. Deprecate API versions with a published end date and a response header that warns clients, then remove them on schedule rather than leaving unmaintained code reachable.

Should management endpoints be public?

As little as possible. SSH, database ports, admin panels and metrics should be reachable only from known addresses or through a WireGuard tunnel. Public network endpoints should be limited to the services your users actually need, usually ports 80 and 443, plus game or mail ports where relevant. Our What a firewall does article shows a default-deny rule set, and IPv6 and reverse DNS on your server covers address configuration.

Related pages

What a firewall does

Firewalls explained from packets up: stateful filtering, default-deny policies, host and network firewalls, nftables examples and mistakes that lock you out.

Read more

IPv6 and reverse DNS on your server

Configuring the IPv6 block that comes with every machine and setting the reverse DNS name of its IPv4 address from the console.

Read more

Monitoring servers

Host your own metrics, logs and alerting on a dedicated box: Prometheus retention maths, exporters, Grafana, log storage and watching from another site.

Read more

Hardening a new dedicated server

The first hour on a fresh machine: SSH keys, a firewall, automatic updates, brute force blocking and a habit of checking what listens.

Read more

Questions and answers

What is an endpoint in networking?

One end of a connection, identified by an IP address and a port, such as a web server on port 443.

What is an API endpoint?

A specific URL and method where a service accepts requests, for example POST /v2/orders on an HTTPS host.

Is a server an endpoint?

Yes, in the security sense a server is a device endpoint, alongside laptops and phones, and it needs patching and monitoring.

How do I list open endpoints on a Linux server?

Run ss -tulpn on the server, then scan it from another machine to see what is reachable from outside.

Can I host many API endpoints on one IPv4 address?

Yes. A reverse proxy routes by host name and path, and SNI lets each name have its own TLS certificate on the same address.