cancel
Showing results for 
Search instead for 
Did you mean: 

MS Visual Studio .Net 2003 and SAP .Net Connector failure

Former Member
0 Kudos

Hi Gurus,

My environment is "SAP Client <-> firewall <-> SAP Server"

First scenario, SAP Client is SAPGui 6.20,

Cisco PIX Firewall,

SAP Server is SAP R/3 4.6C

Result -> I can connected via SAPGui to 3204/tcp successfully.

Second scenario, SAP Client is SAP .Net Connector & MS Visual Studio .Net 2003,

Cisco PIX Firewall,

SAP Server is SAP R/3 4.6C

Result -> I cannot connect via SAP .Net Connector to 3304/tcp as error below.

What's my mistake? Please recommend too.

Connect from SAP gateway to RFC server failed

Connect_PM GWHOST=192.168.1.100, GWSERV=sapgw04, ASHOST=192.168.1.100, SYSNR=04

LOCATION SAP-Gateway on host prdsapr3

ERROR connection to host 192.168.1.100, service sapgw04 timed out

TIME Thu Mar 10 16:17:12 2005

RELEASE 46C

COMPONENT NI (network interface)

VERSION 34

RC -12

MODULE nixxi.c

LINE 749

DETAIL NiPConnect

COUNTER 2

Regards,

Choosak B.

Accepted Solutions (0)

Answers (1)

Answers (1)

reiner_hille-doering
Active Contributor
0 Kudos

RFC (and thus NCo) needs RFC port 3304 to be open. Likely this is blocked by the firewall. You can easily check with "telnet 192.168.1.100 3304".

Former Member
0 Kudos

Hi,

The above error message is actually from the SAP gateway. This indicates that the .NET Connector has successfully passed through the firewall and reached the SAP Gateway, but the gateway failed to forward the call to the actual target, one of the SAP server processes running on the same host.

Usually, this problem may occur if there is a firewall that implements a NAT (Network Address Translator) between the RFC client and the SAP server. In this case, the SAP gateway receives an external IP-address from the client and mistakenly uses it as the address of the final destination without realizing that this external IP-address is invalid inside the firewall. Consequently, the attempt failed.

The solution to this problem is to add the external IP-address of the SAP server to the R/3 instance profile parameter gw/alternative_hostnames, for example in your case:

gw/alternative_hostnames =192.168.1.100,

You need to restart the SAP Gateway after changing the profile parameter.

For details about this topic, please refer to the SAP note 148832.

Hope it helps,

Guangwei

Former Member
0 Kudos

We have exactly the same problem.

But according to our systemmanager, he is unable to set

the parameter gw/alternative_hostnames as it is not accepted.

Can this parameter be used in conjunction with netstat?

I know it would solve our problem because we were able to fix the problem by assigning an IP-alias with the external IP-address. but this was causing to much other problems.

Could you give me more detailed information on how to set this parameter?

Thank you in advance,

Joris.