CyberHunter
// Network services

Port 5540: Matter Operational Discovery and Communi

Port 5540 is assigned by IANA to matter (Matter Operational Discovery and Communi).

5540

How matter works

Network services
client:5540matterresponse client:5540matterresponse

The client sends a request to port 5540 and the matter service answers.

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)
01 Security

Is port 5540 dangerous?

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

  • Answer only the networks that need the service (no open resolvers, relays or reflectors).
  • UDP services can be abused for DDoS amplification: rate-limit or block them at the edge.
  • Disable legacy test services that have no use in production.
02 Registry

IANA registry entries for port 5540

ServicePortTransportDescriptionReferenceUpdated
matter 5540 TCP, UDP Matter Operational Discovery and Communi - 2021-07-16

// source: IANA service name and port number registry

03 Check it

Which program uses port 5540, and is it reachable?

Linux

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

macOS

sudo lsof -nP -i :5540

Windows (PowerShell)

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

From another machine

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

Block it in the firewall

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

Port 5540 is assigned by IANA to matter (Matter Operational Discovery and Communi).

Is port 5540 TCP or UDP?

Port 5540 is registered for TCP and UDP.

Is it safe to open port 5540?

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. Answer only the networks that need the service (no open resolvers, relays or reflectors).

How do I check if port 5540 is open?

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

05 Related