- Serve it over HTTPS only and check the HTTP security headers.
- Keep admin consoles and development servers off the Internet.
- Patch the application server and remove default credentials and sample apps.
Port 6786: Sun Java Web Console JMX
Port 6786 is assigned by IANA to smc-jmx (Sun Java Web Console JMX).
How smc-jmx works
WebA browser sends an HTTP request to port 6786 and the smc-jmx server sends the page back.
- Transport
- TCP · UDP
- Exposure risk
- not rated depends on the program listening
- Encryption
- Unknownnot stated by the registry
- IANA status
- Assigned1 registered service
- Range
- Registered (1024-49151)
- Category
- Web
Is port 6786 dangerous?
We have no specific security note for port 6786. Its risk depends on the program actually listening on it. General advice for web services:
IANA registry entries for port 6786
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| smc-jmx | 6786 | TCP, UDP | Sun Java Web Console JMX | - | 2005-08 |
// source: IANA service name and port number registry
Which program uses port 6786, and is it reachable?
Linux
sudo ss -ltnup 'sport = :6786' # process listening on 6786
sudo lsof -nP -i :6786macOS
sudo lsof -nP -i :6786
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 6786 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 6786 netstat -ano | findstr :6786
From another machine
nmap -p 6786 -sV <host> sudo nmap -sU -p 6786 <host> nc -zv <host> 6786
Block it in the firewall
sudo ufw deny 6786/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 6786" -Direction Inbound -LocalPort 6786 -Protocol TCP -Action Block # Windows
What is port 6786 used for?
Port 6786 is assigned by IANA to smc-jmx (Sun Java Web Console JMX).
Is port 6786 TCP or UDP?
Port 6786 is registered for TCP and UDP.
Is it safe to open port 6786?
It depends on the program that listens on it. Open it only for a service you know and only to the networks that need it. Serve it over HTTPS only and check the HTTP security headers.
How do I check if port 6786 is open?
On Linux run "ss -ltnup 'sport = :6786'", on macOS "lsof -nP -i :6786", and on Windows "netstat -ano | findstr :6786" to see the local process. From another machine, "nmap -p 6786 <host>" shows whether it is reachable.