HTTPfy

Port 4848 (GlassFish / Payara admin)

GlassFish and Payara Server administration console.

Registered (user) port, 1024-49151 TCP Web Do not expose to the internet

What port 4848 is used for

GlassFish and Payara Server administration console.

Security: should port 4848 be open?

Do not expose to the internet. Ships with weak defaults (admin with no password in older versions); never expose.

IANA assignment

Service nameProtoDescriptionAssigneeReference
appserv-http TCP App Server - Admin HTTP - -
appserv-http UDP App Server - Admin HTTP - -

Check what is listening on port 4848

Linux: is anything listening on TCP 4848?
sudo ss -tlnp 'sport = :4848'
Linux / macOS: which process owns the port
sudo lsof -nP -i :4848
Older Linux / BSD (net-tools)
sudo netstat -tlnp | grep ':4848 '
Windows (Command Prompt)
netstat -ano | findstr :4848
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 4848 -State Listen | Select LocalAddress,OwningProcess

Test it from outside

From another machine
nc -vz -w 5 HOST 4848
From Windows
Test-NetConnection HOST -Port 4848

Block port 4848 in the firewall

ufw
sudo ufw deny 4848/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 4848 -j DROP
nftables
sudo nft add rule inet filter input tcp dport 4848 drop
Windows Firewall
New-NetFirewallRule -DisplayName 'Block TCP 4848' -Direction Inbound -Protocol TCP -LocalPort 4848 -Action Block

Related ports

All port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.