Unable to connect to remote AppServer

Posted by Admin on 15-Apr-2011 09:10

Hello,

I can't connect to remote Appserver (Linux machine) from a Windows 4GL client.

DEF VAR ret AS LOG.
DEF VAR hAppSrv AS HANDLE.
CREATE SERVER hAppSrv.
ret = hAppSrv:CONNECT("-AppService asbroker1 -H 10.200.220.165").

On the last statement, I've got a 9407 error.

On Linux, AppServer and NameServer are well started.

BUT, there's something I don't understand.

With Progress Explorer Tool, I create an progress server on Localhost. I start NS1 then asbroker1 and mysteriously, my 4GL code works!!   However I strongly specified -H 10.200.220.165, the remote machine!!!!!

I really need help. I read documentation again and again...and again but nothing conclusive.

Thanks.

All Replies

Posted by Admin on 15-Apr-2011 09:15

Firewall?

Posted by alextrs on 15-Apr-2011 09:39

Try to use DirectConnect, it will eliminate NS from chain.

ret = hAppSrv:CONNECT("-AppService asbroker1 -H 10.200.220.165 -DirectConnect").

Posted by Admin on 15-Apr-2011 09:45

ret = hAppSrv:CONNECT("-AppService asbroker1 -H 10.200.220.165 -DirectConnect").

Then you should be adding

-H

Posted by Admin on 18-Apr-2011 02:12

Thanks for your replies.

I've resolved my problem.

Hosts file (/etc/hosts) was incomplete.

I've added:

10.200.220.165     srvLinux

And now, it works fine..but it remains strange.

This thread is closed