Skip to Content
0
Jan 30, 2023 at 04:35 PM

SAP JCo - Not able to connect message server using hostname

493 Views Last edit Jan 31, 2023 at 07:44 AM 2 rev

Hello All,

We are trying to connect SAP group server using the SAP Java Connector. The below configurations we use to connect to the server.

DestinationDataProvider.JCO_MSHOST // Hostname or IP address<br>DestinationDataProvider.JCO_GROUP // PUBLIC<br>DestinationDataProvider.JCO_GWHOST // hostname<br>DestinationDataProvider.JCO_SYSNR // system number<br>DestinationDataProvider.JCO_CLIENT // 800<br>DestinationDataProvider.JCO_R3NAME // two digit system id<br>DestinationDataProvider.JCO_SAPROUTER // Routing address

With this configuration, we cannot connect to the group server.

Then, We have tried setting the port number with a combination of IP addresses. This configuration seems working fine.

DestinationDataProvider.JCO_MSHOST // Hostname or IP address<br>DestinationDataProvider.JCO_MSSERV // port number

The requirement is to connect group server using hostname instead of IP address/port number. So, can someone help over here.

Thanks.