Overview of protocols, sockets and portsPermalink

Protocol

Port

Sockets

ABB netConfig

24576

1 permanent socket per interface

3S gateway client (e.g. CODESYS) to gateway server

1217

1 permanent socket

Online access with driver 3S block driver TCP/IP (no scan)

(Online access - multi download tool)

11740

1 socket per connection + 1 listen

Modbus TCP server

502 or configurable

1 socket listen + 1 socket per server connection, number of server connections is configurable in AB

Modbus TCP client with POU ModTcpMast

Random

1 socket per connection with POU ModTcpMast

UDP out of user program with library SysLibSockets.lib

1 ... 65535

1 socket per connection

TCP/IP out of user program with library SysLibSockets.lib

1 ... 65535

1 socket per connection

Web server on PLC with web visualization

80

1 listen and 1 per connection

NTP/SNTP client

123

1 permanent socket

IEC60870-5-104 control station

Random

1 per connection

IEC60870-5-104 substation

2404

1 per connection

FTP server

(TCP ports - multi download tool)

Command port = 21

Data active mode = 20

Data passive mode = random

1 per session, max. 4 allowed

CODESYS network variables

1202

(UDP broadcast)

OPC DA server (default 3S block driver)

UDP = 1740 or

TCP/IP =11740

1 socket per connection

OPC UA server

4840

1 permanent socket

ICMP – ping out of user project with POU ETHx_ICMP_PING DHCP

none

No socket

DHCP

67

1 socket during startup

NTP/SNTP ((Simple) Network Time Protocol) client system solution

⮫ “NTP client configuration”

123

1 permanent socket

NTP/SNTP ((Simple) Network Time Protocol) server system solution

⮫ “NTP server configuration”

123

1 permanent socket

HTTPS – secure web server on PLC with CODESYS web visualization

⮫ “Secure web server”

443

1 listen and 1 per connection

FTPS – secure FTP

⮫ “Secure FTP”

Command port = 21

Data active mode = 20

Data passive mode = random

1 per session, max. 4 allowed

Secure online access with driver 3S TCP/IP BlkDrvTcp

11740

1 socket per connection + 1 listen

ICMP – ping out of user project with POU ETHx_ICMP_PING or EthIcmpPing (PLCopen style)

None

No socket

Modbus TCP client (master) with POU ModTcpMast (PLCopen style)

Random

1 socket per connection with POU ModTcpMast

DNP3 Outstation

20000

1 socket per connection

SysLog client

Random

1 socket when Syslog client is configured.