- Close the port if nothing on the host needs it.
- Identify the process that listens on it (commands below) before opening it in a firewall.
- Expose a service only to the networks that use it.
Port 5904: Air-Ground SWIM
Port 5904 is assigned by IANA to ag-swim (Air-Ground SWIM).
How ag-swim works
Other servicesThe client sends a request to port 5904 and the ag-swim service answers.
- Transport
- TCP · UDP · SCTP
- 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
- Other services
Is port 5904 dangerous?
We have no specific security note for port 5904. Its risk depends on the program actually listening on it. General advice for other services services:
IANA registry entries for port 5904
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| ag-swim | 5904 | TCP, UDP, SCTP | Air-Ground SWIM | - | 2022-06-03 |
// source: IANA service name and port number registry
Which program uses port 5904, and is it reachable?
Linux
sudo ss -ltnup 'sport = :5904' # process listening on 5904
sudo lsof -nP -i :5904macOS
sudo lsof -nP -i :5904
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 5904 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 5904 netstat -ano | findstr :5904
From another machine
nmap -p 5904 -sV <host> sudo nmap -sU -p 5904 <host> nc -zv <host> 5904
Block it in the firewall
sudo ufw deny 5904/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 5904" -Direction Inbound -LocalPort 5904 -Protocol TCP -Action Block # Windows
What is port 5904 used for?
Port 5904 is assigned by IANA to ag-swim (Air-Ground SWIM).
Is port 5904 TCP or UDP?
Port 5904 is registered for TCP and UDP and SCTP.
Is it safe to open port 5904?
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. Close the port if nothing on the host needs it.
How do I check if port 5904 is open?
On Linux run "ss -ltnup 'sport = :5904'", on macOS "lsof -nP -i :5904", and on Windows "netstat -ano | findstr :5904" to see the local process. From another machine, "nmap -p 5904 <host>" shows whether it is reachable.