Skip to Content
Author's profile photo Manjunath Hanmantgad

Could not connect to SAP Message Server from Web Dispatcher

Hi Everyone,

Most of the times we face this error message in the Web dispatcher trace file (dev_webdisp) stating that connection to message server is not possible.

There are different reasons for this to occur. Most of the times the issue is occurring because of wrong configuration of the message server port in the Web Dispatcher port.

We can configure the parameter related to message server port HTTP(S) in the Web Dispatcher host profile. The port on which the message server receives HTTP requests

The common entries occurring the trace file looks like:

*** ERROR => Connection request from (-1/65535/0) to host: <message server hostname>, service: <message server port> failed (NIECONN_REFUSED) {001d7388} [icxxconn.c 2712]

*** ERROR => IcmConnClientRqCreate() failed (rc=-8) [icrxx.c 6910]

*** ERROR => Could not connect to SAP Message Server at <message server host> URL=/msgserver/text/logon?version=1.2 [icrxx.c 3870]

*** ERROR => rc=-1, HTTP response code: 0 [icrxx.c 3871]

These entries show us that web dispatcher is not able to connect to message server on the http port.

To check this we have one solution to do.

We can check the connectivity of the backend message server’s http port by using simple telnet command.

How to check the connectivity using telnet ?

You can check this by using

telnet <message server hostname> <message server port>

You can find the message server http port in dev_ms trace file

where entries usually would look like:

I listen to HTTP port ****

You should be able to successfully test telnet command. The result would be something like :

telnet <msg server hostname> <msg server port>

trying to connect ..

connected successfully..

Hope this information helps


Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Isaias Freitas
      Isaias Freitas


      Just one observation.

      The parameters "ms/http_port" and "ms/https_port" are deprecated.

      The parameter "ms/server_port_X" should be used instead.



      Author's profile photo Manjunath Hanmantgad
      Manjunath Hanmantgad
      Blog Post Author

      Hi Isaias,

      Thank you for valuable feedback 🙂

      Best regards,


      Author's profile photo Isaias Freitas
      Isaias Freitas

      You're welcome! 🙂

      Author's profile photo Biser Grozdanov
      Biser Grozdanov


      And what about receiving exactly the same error but telnet is working and the message server port confirmed?

      I have a working configuration but after a web dispatcher server restart the above errors start occur. From network point of view everything seems to be OK. Any ideas?

      Best Regards,

      Author's profile photo Veera Kondapi
      Veera Kondapi

      Dear Biser Grozdanov,

      I have the same issue as you reported. Did you find a resolution to it?