Port 9090 (Cockpit, Prometheus)
Key facts
- Port
- 9090
- Protocols
- TCP
- Range
- Registered port, 1024-49151
- IANA service name
- websm
- Unofficial use
- The use described on this page is not the IANA assignment for this port. Source (opens in a new tab) Checked on 30.11.2026
IANA assigns ports in this range to services on request, under RFC 6335.
About port 9090
Port 9090 is registered by IANA for the websm service (WebSM), but on Linux servers it is best known for Cockpit, a browser-based server management interface, and Prometheus, a metrics collection and monitoring system.
Common use (unofficial): according to the Cockpit documentation, you open the interface at https://server-address:9090. According to the Prometheus documentation, the --web.listen-address setting sets the address of the interface, the API and the metrics, and its default is 0.0.0.0:9090. Neither of these uses is the IANA assignment; both are documented by the software vendors. Since both programs use the same port, when you check a server, confirm which process is actually listening on it.
What port 9090 is used for
- Cockpit: managing the server in a browser, including services, logs, users, networking, storage and updates, logging in with an operating system user.
- Prometheus: an interface for queries and graphs, an API and the /metrics endpoint, all on port 9090.
- Visualization tools: tools such as Grafana connect to Prometheus on port 9090 to display dashboards.
Port 9090 in the firewall
Management and monitoring interfaces are meant for administrators only, so allow port 9090 only from known addresses:
- UFW:
ufw allow from 203.0.113.10 to any port 9090 proto tcp - firewalld:
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="203.0.113.10" port port="9090" protocol="tcp" accept'
When you restrict access to specific addresses, also delete any earlier rule that opened the port to everyone, or that general rule will keep allowing access from any address.
firewalld also has a cockpit service, which opens port 9090 to anyone who reaches the zone. On a server that faces the internet, the restricted rule above is the better choice. When Prometheus only needs to be reachable by tools on the same server, you can run it with --web.listen-address=127.0.0.1:9090.
Risks and security
Cockpit gives full control of the server, and Prometheus exposes information about servers and services, so protect both of them:
- Restrict port 9090 to administrators' addresses, or reach it through a VPN.
- In Cockpit, log in with a regular user with a strong password, and take administrative privileges only when needed.
- According to the Prometheus documentation, TLS and user authentication are configured in a file passed with the --web.config.file option. Without such settings, anyone who reaches the port can view the data.
- Install updates for both programs regularly.
Commands to check and configure
-
ss -tlnp | grep ':9090 'Shows which process is listening on port 9090, Cockpit or Prometheus, and on which address (requires root privileges).
-
systemctl enable --now cockpit.socketStarts Cockpit now and at every server boot.
-
systemctl status cockpit.socketShows the status of the Cockpit service and the port it is listening on.
-
curl http://localhost:9090/-/healthyChecks that Prometheus is running. A healthy response returns code 200.
-
curl -s http://localhost:9090/metrics | headShows the first lines of the metrics Prometheus publishes about itself.
-
ufw allow from 203.0.113.10 to any port 9090 proto tcpAllows access to port 9090 only from the specified IP address (UFW).
-
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="203.0.113.10" port port="9090" protocol="tcp" accept'Allows access to port 9090 in firewalld only from the specified IP address. Then run firewall-cmd --reload.
Port 9090 in the IANA registry
| Port | Protocol | Service | IANA registry description |
|---|---|---|---|
| 9090 | TCP | websm | WebSM |
| 9090 | UDP | websm | WebSM |
Data source: IANA Service Name and Transport Protocol Port Number Registry (opens in a new tab)
Port 9090 FAQ
How do I find out which software is listening on port 9090?
Run ss -tlnp | grep ':9090 ' on the server. The process name in the output shows whether it is Cockpit, Prometheus or another program. When both Cockpit and Prometheus are installed on the server, move one of them to a different port.
How do I log in to Cockpit?
Start the service with systemctl enable --now cockpit.socket, allow port 9090 in the firewall from your own address, and browse to https://server-address:9090 with the server's username and password.
How do I restrict Prometheus to local access?
Run Prometheus with --web.listen-address=127.0.0.1:9090. This way only tools running on the same server, such as Grafana, can connect to it, and the port isn't reachable from outside even when the firewall is open.
Why does the browser show a certificate warning when I open Cockpit?
When no certificate has been installed, Cockpit uses a certificate it creates for itself, which the browser doesn't recognize. You can continue after making sure it is your server, or install a signed certificate for the server name. The SSL errors page explains the common certificate warnings.