0 Replies Latest reply on Apr 10, 2008 12:17 PM by Dirk Tschentscher

    RMI-Client gets wrong (internal) IP

    Dirk Tschentscher Newbie

      Hi,

      we are trying to connect a JMS Client with jboss4.2.2 via a router.
      But the client tries to connect to the internal IP, not the global.

      We tried the JVM-args -Djava.rmi.server.hostname=GLOBALEIP
      and -Djava.rmi.server.useLocalHostname=false or true (?) ... with no luck :-(

      javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 10.128.0.48; nested exception is:
       java.net.ConnectException: Connection timed out]
      ...
      


      The 10.128.0.48 is the internal-IP, not the global one, the client can see.

      any hints appreciated

      --dirk