SaferComputing.com

Reference · Self-hosted services

Port 8443: UniFi Network, Tomcat, Jetty and other web consoles on the alternative HTTPS port

Port 8443 is the HTTPS port of a self-hosted UniFi Network Application and of Tomcat, Jetty, Plesk and Keycloak: find the process with ss or Get-NetTCPConnection, test from outside with curl, read the certificate with openssl, then bind or firewall it.

Published
Updated
Last checked
Applies to
The self-hosted UniFi Network Application, Apache Tomcat 10.1 and 11.0, Eclipse Jetty 12, Plesk Obsidian and Keycloak, on Linux and Windows
Technical specification
Target artifactTCP port 8443, used for HTTPS in place of 443 by a self-hosted UniFi Network Application, by Apache Tomcat and Eclipse Jetty, and by consoles such as Plesk and Keycloak.
Default behaviourA UniFi Network Application on Windows, macOS or Linux serves its interface on 8443. Tomcat ships its 8443 connector inside a comment; once enabled, Tomcat listens on every address and Jetty on 0.0.0.0.
Safe state8443 answers only on 127.0.0.1, on a private address or to addresses a firewall rule names; the router forwards nothing to it; the software behind it is a supported, updated version.
Check on Linuxsudo ss -tlnp 'sport = :8443'
Check on WindowsGet-NetTCPConnection -State Listen -LocalPort 8443 | Select-Object LocalAddress, LocalPort, OwningProcess
Check from another networkcurl -sSkI --max-time 8 https://PUBLIC_IP:8443/
Fix on the routerdelete any port forward to 8443
Fix in Tomcatadd address="127.0.0.1" to the 8443 connector in server.xml, then restart Tomcat
Fix with UFWsudo ufw allow from 203.0.113.5 to any port 8443 proto tcp

Read the result

ResultMeaning
ss prints only its header lineNothing listens on 8443 on this machine
127.0.0.1:8443Only this computer can connect
0.0.0.0:8443Every IPv4 address of the machine: other computers can connect unless a firewall stops them
curl prints a status line such as HTTP/1.1 200A web server answers on 8443 from where the test ran
curl: (7) Failed to connect, at onceRefused: nothing accepts connections on that address and port
curl: (28) Connection timed out, after 8 secondsNo answer within --max-time 8, as when a firewall drops the request

The -k option accepts any certificate; without it, a self-signed one ends the test with curl: (60) SSL certificate problem. Run the outside test from a network other than your own: Open-port self-audit has more checks of a public address.

What port 8443 is

The IANA port registry assigns 8443, TCP and UDP, to a service named pcsync-https. The products on this page use it instead as their HTTPS port. Tomcat's TLS guide gives a reason: the connector can move to 443, but "special setup (outside the scope of this document) is necessary to run Tomcat on port numbers lower than 1024 on many operating systems".

The number does not say which product is listening; the process and the certificate do. The scanner feed shows how many blocked sources tried port 8443 on this site's own server in the last 7 days.

UniFi Network Application

Ubiquiti's ports reference lists TCP 8443 as "Used for application GUI/API as seen in a web browser" for applications "running on a Windows/macOS/Linux machine"; on a UniFi Console the interface is on TCP 443. The same table lists TCP 8080 (device and application communication), UDP 3478 (STUN) and UDP 10001 (device discovery). Only self-hosted servers can change these defaults, in a file in <unifi_base>/data/.

A second table, "Ingress Ports Required for L3 Management Over the Internet", includes 8443 and says such ports are opened "by creating port forwards on the gateway/firewall where the application is running". A forward to 8443 puts the interface and its API on the internet. The alternative is Remote Management, which "allows you to manage all your UniFi deployments through the UniFi Site Manager": for it, the reference lists outgoing ports only, TCP and UDP 443 and TCP 8883, with DNS, STUN and NTP.

Ubiquiti's Security Advisory Bulletin 067 of 26 August 2026 lists two flaws rated 9.1 (critical) in the UniFi Network Application: CVE-2026-77535, an improper input validation flaw, and CVE-2026-77541, an improper access control flaw. Each needs access to the network and high privileges. Both affect version 10.4.57 and earlier; Ubiquiti's fix is version 10.5.67 or later.

Apache Tomcat

Tomcat's default server.xml has one active connector, HTTP on 8080 with redirectPort="8443"; the TLS connector for 8443 is an example inside a comment, which Tomcat's TLS guide says to uncomment. Started with the configuration of Ubuntu 24.04's tomcat10 package (Tomcat 10.1.55), Tomcat listened on 8080 only: one that answers on 8443 has had the connector enabled. Then "a connector listens on all configured IP addresses" unless it has an address attribute.

The Manager application deploys web applications remotely, and Tomcat's security guide calls it "frequently targeted by attackers". By default no user in tomcat-users.xml has a Manager role, so "access to the Manager application is completely disabled", and a RemoteCIDRValve in the application's context.xml "limits access to localhost".

Warning Ubuntu's package leaves out the localhost limit

In a test with tomcat10-admin 10.1.55, /manager/html and /host-manager/html answered 401, the password prompt, to a request from an address other than 127.0.0.1. The package deploys them through manager.xml and host-manager.xml in /etc/tomcat10/Catalina/localhost/, which hold no valve, and the valve in each application's own context.xml had no effect. With the valve added to both files, the same requests got 403. Add it before giving any user a Manager role.

Contents of /etc/tomcat10/Catalina/localhost/manager.xml with the valve added
<Context path="/manager"
         docBase="/usr/share/tomcat10-admin/manager"
         antiResourceLocking="false" privileged="true">
  <Valve className="org.apache.catalina.valves.RemoteCIDRValve"
         allow="127.0.0.0/8, ::1/128"/>
</Context>

As of 16 November 2026, Tomcat's version page lists three supported lines: 11.0.x (latest 11.0.29), 10.1.x (10.1.61) and 9.0.x (9.0.124, released on 13 November), with end of support for 9.0.x "expected no earlier than 31 March 2027". Tomcat 8.5 reached end of life on 31 March 2024.

CISA's Known Exploited Vulnerabilities catalog, version 2026.11.13, lists six Tomcat flaws. The two newest are CVE-2025-24813, added on 1 April 2025 and fixed in Tomcat 11.0.3, 10.1.35 and 9.0.99, and CVE-2026-34486, added on 4 August 2026 and fixed in 11.0.21, 10.1.54 and 9.0.117. Tomcat's security pages say the first needs writes enabled for the default servlet, which is off by default, and the second affects only 11.0.20, 10.1.53 and 9.0.116.

Eclipse Jetty

In Jetty 12, the ssl module "provides the secure connector". Its properties default to jetty.ssl.port=8443 and jetty.ssl.host=0.0.0.0, so a Jetty server with that module listens on 8443 on every IPv4 address. The documentation describes jetty.ssl.host as "The host/address to bind the connector to": set it to 127.0.0.1 or a private address to limit the port.

Other consoles on port 8443

ProductWhat its documentation puts on 8443
Plesk Obsidian"Administrative interface of Plesk over HTTPS", TCP and UDP 8443; the same interface over HTTP is TCP 8880
KeycloakThe HTTPS port, https-port, default 8443; for http-host, "In prod mode or when running on Windows Subsystem For Linux the default is to bind to all network addresses (0.0.0.0)"

Identify the product

Linux: the process
Linux, as a user with sudo
sudo ss -tlnp 'sport = :8443'
ps -o user,args -p PID

The ss line ends with the program and its process ID, such as users:(("java",pid=2456,fd=40)). Put that number in place of PID: ps prints the account and the full command line.

Windows: the process
Windows PowerShell
Get-NetTCPConnection -State Listen -LocalPort 8443 | Select-Object LocalAddress, LocalPort, OwningProcess
Get-Process -Id PID

OwningProcess is the process ID; put it in place of PID.

The certificate
Linux terminal
openssl s_client -connect SERVER_IP:8443 </dev/null 2>/dev/null | openssl x509 -noout -subject -issuer -dates

The output is the certificate's subject, issuer and validity dates; an identical subject and issuer mean a self-signed certificate. The response headers may not name the product: from version 8.5, Tomcat sends no Server header by default.

Close or restrict it

Remove the port forward

Delete any forward to 8443 on the router, then repeat the outside test. Home router check covers port forwards and UPnP.

Bind Tomcat to one address
Start of the 8443 connector in /etc/tomcat10/server.xml on Ubuntu, with the address added
<Connector port="8443" address="127.0.0.1" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true">

Restart Tomcat afterwards. In the test, ss then showed 127.0.0.1:8443, and a request to the machine's other address was refused. To serve one private network instead, use that interface's address, such as a WireGuard or Tailscale address: WireGuard and Tailscale binding covers the start-up order.

Admit named addresses with UFW
Ubuntu, as a user with sudo
sudo ufw allow from 203.0.113.5 to any port 8443 proto tcp

Replace 203.0.113.5 with the address you manage from. In a dry run with ufw 0.36.2, the command produced one rule that accepts TCP 8443 from that address. It limits access only when no wider rule opens the port (remove one with sudo ufw delete allow 8443/tcp) and UFW's default for incoming traffic is deny, which its Ubuntu package sets as DEFAULT_INPUT_POLICY="DROP" in /etc/default/ufw. Docker routes the ports it publishes before UFW's rules apply: see Docker published ports bypass UFW.

Sources