Browse OpenIMSDK Guides
Guides

Ports and Network

Configure firewall rules, exposed ports, and SDK access addresses.

Copy

Deploy without a domain or SSL certificate

Allow the following inbound ports through your host firewall or cloud security group. Do not expose any other ports publicly.

ModulePortDescriptionAction
OpenIMServerTCP 10001WebSocket messaging port, used by OpenIMClientSDKAllow
OpenIMServerTCP 10002REST APIs for users, friends, groups, and messagesAllow
OpenIMServerTCP 10005MinIO object storage serviceAllow
ChatServerTCP 10008Application business APIs (user registration, login, etc.)Allow
ChatServerTCP 10009App Administrator APIs (statistics, account banning, etc.)Allow
Web frontend (optional)TCP 11001PC Web client, needed if performing browser-based verificationAllow as needed
Admin frontend (optional)TCP 11002App Administrator management consoleAllow as needed

Initialize OpenIMClientSDK using direct IP endpoints:

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

Deploy with a domain and SSL certificate

Expose only the standard HTTPS port TCP 443 publicly. Restrict all internal service ports to private networks or localhost. Complete DNS domain resolution and host IP binding first, then follow Domain configuration to configure SSL certificates and reverse proxy routing.

Initialize OpenIMClientSDK using secure domain endpoints:

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

If you intend to follow the browser-based verification steps in Deployment verification by accessing port 11001 directly, ensure that port is reachable. If you do not require web frontend verification, never expose ports 11001 or 11002 to the public internet.