NotesException: Could not open Notes session:

Hi I Have problem when try to access database from domino server Remotely

The java code looks like:

String host =“9.65.140.218:63148”;

      	String tmpIOR = NotesFactory.getIOR(host);            	

    	session = NotesFactory.createSessionWithIOR(tmpIOR,aUsername,aPassword);

Then I get the exception:

NotesException: Could not open Notes session: org.omg.CORBA.COMM_FAILURE: java.net.ConnectException: Connection refused: connect Host: 127.0.0.1 Port: 63148 vmcid: 0x0 minor code: 1 completed: No

But

http://9.65.140.218:63148/diiop_ior.txt

and http://9.65.140.218:/diiop_ior.txt

Gives same output.

And on server consol it look like

10.15.36 AM DIIOP server: 9.124.236.216 connected

10.15.37 AM DIIOP server: 9.124.236.216 disconnected

What does the exception mean ? and how to resolve this problem ??

Subject: NotesException: Could not open Notes session:

For some reason Notes tries to locate your host locally, which can be seen by the IP-adress 127.0.0.1.

Will this help you?

Subject: NotesException: Could not open Notes session:

Have you get the solve to this problem? I Have the same…

Subject: RE: NotesException: Could not open Notes session:

No I have not solved this problem

Subject: RE: NotesException: Could not open Notes session:

effectively the 127.0.0.1 means that you are trying to access localy even if you put the server’s ip adress in your java code. the problem is in the host file of the domino server, you will see that localhost is associed to the url of the hostnam of the server. Change it to the server’s ip adress and it will solve the problem.