Skip to main content

🔐 Ports and Firewall

1. Without a Domain Name and SSL Certificate

The following ports must be opened on the server. Other ports should not be exposed publicly.

ModulePortDescriptionAction
OpenIMServerTCP:10001WebSocket message port used by OpenIMClientSDKOpen the port
OpenIMServerTCP:10002API port for users, friends, groups, messages, and related APIsOpen the port
OpenIMServerTCP:10005MinIO object storageOpen the port
ChatServerTCP:10008APP Business Server APIs such as registration and loginOpen the port
ChatServerTCP:10009APP Administrator APIs such as statistics and user bansOpen the port
Web frontend (optional)TCP:11001PC Web frontend; needed for browser-based quick verificationOpen if needed
Admin frontend (optional)TCP:11002APP Administrator frontend pageOpen if needed

In the client SDK, initialize with:

apiAddr: http://your_server_ip:10002
wsAddr: ws://your_server_ip:10001

2. With a Domain Name and SSL Certificate

The following ports must be opened on the server. Other ports should not be exposed publicly.

PortDescriptionAction
TCP:443Default HTTPS portOpen the port

Configuration reference: Domain and SSL Certificate Configuration

Complete DNS resolution first so that the IP is bound to the domain.

In the client SDK, initialize with:

apiAddr: https://your_domain.com/api
wsAddr: wss://your_domain.com/msg_gateway

Monitoring, frontend, and other service ports are recommended to stay internal-only and be exposed only when needed.

If you want to access 11001 directly from the browser as described in Quick Verification, the frontend port must be reachable. If you do not need frontend page verification, you do not need to expose 11001/11002 publicly.