CyberHunter
// IoT & industrial (ICS)

Port 2222: EtherNet/IP I/O IANA assigned this well-formed service name as a replacement for "EtherNet/IP-1".

Port 2222 is assigned by IANA to EtherNet-IP-1 (EtherNet/IP I/O IANA assigned this well-formed service name as a replacement for "EtherNet/IP-1".), EtherNet/IP-1 (EtherNet/IP I/O).

2222

How EtherNet-IP-1 works

IoT & industrial (ICS)
controllerPLCEtherNet-IP-1no authentication controllerPLCEtherNet-IP-1no authentication

A controller sends commands to an industrial device on port 2222, which acts on the physical process.

Transport
TCP · UDP
Exposure risk
not rated depends on the program listening
Encryption
Unknownnot stated by the registry
IANA status
Assigned2 registered services
Range
Registered (1024-49151)
01 Security

Is port 2222 dangerous?

We have no specific security note for port 2222. Its risk depends on the program actually listening on it. General advice for iot & industrial (ics) services:

  • Industrial and IoT protocols often have no authentication: never expose them to the Internet.
  • Segment OT networks from IT and use protocol-aware firewalls.
  • Monitor with an ICS-aware intrusion detection system.
02 Registry

IANA registry entries for port 2222

ServicePortTransportDescriptionReferenceUpdated
EtherNet-IP-1 2222 TCP, UDP EtherNet/IP I/O IANA assigned this well-formed service name as a replacement for "EtherNet/IP-1". - -
EtherNet/IP-1 2222 TCP, UDP EtherNet/IP I/O - -

// source: IANA service name and port number registry

03 Check it

Which program uses port 2222, and is it reachable?

Linux

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

macOS

sudo lsof -nP -i :2222

Windows (PowerShell)

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

From another machine

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

Block it in the firewall

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

Port 2222 is assigned by IANA to EtherNet-IP-1 (EtherNet/IP I/O IANA assigned this well-formed service name as a replacement for "EtherNet/IP-1".), EtherNet/IP-1 (EtherNet/IP I/O).

Is port 2222 TCP or UDP?

Port 2222 is registered for TCP and UDP.

Is it safe to open port 2222?

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. Industrial and IoT protocols often have no authentication: never expose them to the Internet.

How do I check if port 2222 is open?

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

05 Related