CyberHunter
Local dataset, no network
// Web

Port 6787: Sun Web Console Admin

Port 6787 is assigned by IANA to smc-admin (Sun Web Console Admin).

6787

How smc-admin works

Web
browser:6787smc-admin browser:6787smc-admin

A browser sends an HTTP request to port 6787 and the smc-admin 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
01 Security

Is port 6787 dangerous?

We have no specific security note for port 6787. Its risk depends on the program actually listening on it. General advice for web services:

  • 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.
02 Registry

IANA registry entries for port 6787

ServicePortTransportDescriptionReferenceUpdated
smc-admin 6787 TCP, UDP Sun Web Console Admin - 2005-08

// source: IANA service name and port number registry

03 Check it

Which program uses port 6787, and is it reachable?

Linux

sudo ss -ltnup 'sport = :6787'      # process listening on 6787
sudo lsof -nP -i :6787

macOS

sudo lsof -nP -i :6787

Windows (PowerShell)

Get-NetTCPConnection -LocalPort 6787 -State Listen | Select LocalAddress, OwningProcess
Get-NetUDPEndpoint -LocalPort 6787
netstat -ano | findstr :6787

From another machine

nmap -p 6787 -sV <host>
sudo nmap -sU -p 6787 <host>
nc -zv <host> 6787

Block it in the firewall

sudo ufw deny 6787/tcp                                         # Linux (ufw)
New-NetFirewallRule -DisplayName "Block 6787" -Direction Inbound -LocalPort 6787 -Protocol TCP -Action Block  # Windows
04 FAQ
What is port 6787 used for?

Port 6787 is assigned by IANA to smc-admin (Sun Web Console Admin).

Is port 6787 TCP or UDP?

Port 6787 is registered for TCP and UDP.

Is it safe to open port 6787?

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 6787 is open?

On Linux run "ss -ltnup 'sport = :6787'", on macOS "lsof -nP -i :6787", and on Windows "netstat -ano | findstr :6787" to see the local process. From another machine, "nmap -p 6787 <host>" shows whether it is reachable.

05 Related

Latest vulnerability news

All news