cancel
Showing results for 
Search instead for 
Did you mean: 

JCo Server behind a proxy / firewall

11-19-2013 3:52 PM
1050 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

i got some network issues, getting my JCo RFc Server to work. But lets start with the setup:

The machine running the jco server is running behind a proxy/firewall. Lets say the ip of the maschine is 10.0.0.1 and the one of the proxy is 80.0.0.1. When starting the jco server, it registers itself on the sap gateway (which actually works, regarding the logfiles). On transport level, the server sends its own ip as host adress (10.0.0.1). Now if sap is trying to call the server back it will try to connect to this "hidden" ip instead of the proxy.

The following lines present the respective gateway log:

    open client connection (lu=[LU], addr=[ProxyIp],[SapId], tp=sapdp00, type=EXTERNAL_CLIENT)

    C Tue Nov 19 2013 14:05:20:999 client SPLN (convid=69045973)

    C Tue Nov 19 2013 14:05:20:999 client ALLC (convid=69045973)

    C Tue Nov 19 2013 14:05:21:025 client SEND (convid=69045973, length=262)

    C Tue Nov 19 2013 14:05:21:025 client RCV (convid=69045973, req_length=28000)

    C Tue Nov 19 2013 14:05:21:025 send data to server (convid=69045973, length=262, req_length=32000)

    **T Tue Nov 19 2013 14:05:21:025 NiAddrToHost(10.0.0.1) failed**

    O Tue Nov 19 2013 14:05:21:025 open server connection (lu=10.0.0.1, addr=10.0.0.1, tp=sapdp00, type=R3_CLIENT)

    C Tue Nov 19 2013 14:05:21:028 server SEND (convid=69045973, length=431)

Is there any possibilty to tell jco / sap to use another ip (the one of the proxy)? Are there any best practises when working in such environments?

Thanks for your help

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

jpenninkhof
Product and Topic Expert
Product and Topic Expert
0 Likes

As far as I know, it isn't possible to lead the CPI-C protocol through a regtular proxy (CPI-C is the underlying protocol under Jco/RFC). The protocol is a bit too limited for that. Instead, you could see if you can install a gateway to do the job. A gateway is quite similar to a proxy, except that it's specific for the CPI-C protocol.

This page may help you to get started:

http://help.sap.com/saphelp_nw04/helpdata/en/25/90d038f58f863de10000000a11402f/frameset.htm

Good luck!