CyberHunter
// Voice & chat

Port 2427: Media Gateway Control Protocol Gateway

Port 2427 is assigned by IANA to mgcp-gateway (Media Gateway Control Protocol Gateway).

2427

How mgcp-gateway works

Voice & chat
callercalleemgcp-gateway callercalleemgcp-gateway

Port 2427 sets up the call (who calls whom), then the voice travels as a stream of audio packets.

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
Voice & chat
01 Security

Is port 2427 dangerous?

We have no specific security note for port 2427. Its risk depends on the program actually listening on it. General advice for voice & chat services:

  • Use strong credentials and TLS for signalling.
  • Rate-limit registrations to stop extension scanning and toll fraud.
  • Alert on unexpected chat protocols leaving servers (possible command and control).
02 Registry

IANA registry entries for port 2427

ServicePortTransportDescriptionReferenceUpdated
mgcp-gateway 2427 TCP, UDP Media Gateway Control Protocol Gateway - -

// source: IANA service name and port number registry

03 Check it

Which program uses port 2427, and is it reachable?

Linux

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

macOS

sudo lsof -nP -i :2427

Windows (PowerShell)

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

From another machine

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

Block it in the firewall

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

Port 2427 is assigned by IANA to mgcp-gateway (Media Gateway Control Protocol Gateway).

Is port 2427 TCP or UDP?

Port 2427 is registered for TCP and UDP.

Is it safe to open port 2427?

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. Use strong credentials and TLS for signalling.

How do I check if port 2427 is open?

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

05 Related