- Prefer encrypted protocols (SFTP, FTPS, SMB 3 with encryption).
- Disable anonymous access and restrict shares or exports to known hosts.
- Never publish file sharing protocols to the Internet.
Port 5842: Reversion Backup/Restore
Port 5842 is assigned by IANA to reversion (Reversion Backup/Restore).
How reversion works
File transfer & sharingFiles are sent over port 5842 in pieces and reassembled on the other side.
- Transport
- TCP
- 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
- File transfer & sharing
Is port 5842 dangerous?
We have no specific security note for port 5842. Its risk depends on the program actually listening on it. General advice for file transfer & sharing services:
IANA registry entries for port 5842
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| reversion | 5842 | TCP | Reversion Backup/Restore | - | 2022-10-12 |
| - | 5842 | - | Reserved | - | - |
// source: IANA service name and port number registry
Which program uses port 5842, and is it reachable?
Linux
sudo ss -ltnup 'sport = :5842' # process listening on 5842
sudo lsof -nP -i :5842macOS
sudo lsof -nP -i :5842
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 5842 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 5842 netstat -ano | findstr :5842
From another machine
nmap -p 5842 -sV <host> nc -zv <host> 5842
Block it in the firewall
sudo ufw deny 5842/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 5842" -Direction Inbound -LocalPort 5842 -Protocol TCP -Action Block # Windows
What is port 5842 used for?
Port 5842 is assigned by IANA to reversion (Reversion Backup/Restore).
Is port 5842 TCP or UDP?
Port 5842 is registered for TCP.
Is it safe to open port 5842?
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. Prefer encrypted protocols (SFTP, FTPS, SMB 3 with encryption).
How do I check if port 5842 is open?
On Linux run "ss -ltnup 'sport = :5842'", on macOS "lsof -nP -i :5842", and on Windows "netstat -ano | findstr :5842" to see the local process. From another machine, "nmap -p 5842 <host>" shows whether it is reachable.