Skip to main content

Quick Verification

📌 1. Deploy the Server​

Refer to Docker Deployment or Source Code Deployment.


📌 2. Open Ports​

Refer to Ports and Firewall.

📌 3. PC Web Verification​

tip

Enter http://your_server_ip:11001 in your browser to access PC Web. your_server_ip is the server IP where the frontend is deployed.

PC Web Interface

If you do not have a test account yet, complete registration with the following steps:

  1. Click the registration entry at the bottom of the login page.
  2. Fill in the required registration information. If registration verification codes are enabled in the current deployment, complete that verification as well.
  3. After registration succeeds, return to the login page, sign in with the new account, and continue the remaining verification steps.

If self-service registration is disabled in the current deployment, use an existing test account instead.

If you need to register an account on PC Web, the default verification code is 666666.

This value comes from verifyCode.superCode in chat/config/chat-rpc-chat.yml. By default, both phone.use and mail.use are also set to superCode. If you have changed the configuration, use the actual deployed value.

📌 4. Service Process Verification​

Confirm that OpenIMServer and ChatServer are running normally.

Docker Deployment​

docker ps | grep -E 'openim-server|openim-chat'

In the docker deployment scenario, openim-server and openim-chat may initially show health: starting. Wait 20-30s until they become healthy before continuing with API verification.

Source Code Deployment​

# Run in the open-im-server directory
mage check

# Run in the chat directory
mage check

📌 5. Domain and Gateway Verification​

When using a domain name and SSL, call the real interfaces directly to verify the OpenIMServer and ChatServer (APP Business Server) gateway routes.

curl -sS -X POST "https://your_domain/api/auth/get_admin_token" \
-H "Content-Type: application/json" \
-H "operationID: verify-openim" \
-d '{"secret":"your_openim_secret","userID":"imAdmin"}'
curl -sS -X POST "https://your_domain/chat/application/latest_version" \
-H "Content-Type: application/json" \
-H "operationID: verify-chat" \
-d '{}'

If the interface returns JSON with a business error, it usually still means the reverse-proxy path is already connected.

If you have deployed only the backend services and not the frontend pages, the 11001 PC Web step does not apply. It is mainly for the docker deployment scenario where the frontend image is started by default, or for cases where you deployed the web frontend yourself.

To verify the WebSocket gateway, use any WebSocket client to test:

wss://your_domain/msg_gateway

In production, it is recommended to access everything through port 443. OpenIMClientSDK should use:

  • apiAddr: https://your_domain/api
  • wsAddr: wss://your_domain/msg_gateway

📌 6. API Verification Without a Domain​

If you have not configured a domain name or SSL yet, verify directly through the server IP and default ports:

curl -sS -X POST "http://your_server_ip:10002/auth/get_admin_token" \
-H "Content-Type: application/json" \
-H "operationID: verify-openim-local" \
-d '{"secret":"your_openim_secret","userID":"imAdmin"}'
curl -sS -X POST "http://your_server_ip:10008/application/latest_version" \
-H "Content-Type: application/json" \
-H "operationID: verify-chat-local" \
-d '{}'

ChatServer (APP Business Server) POST APIs also require the operationID request header. Without it, the server returns a parameter error.