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

    RMI-Client gets wrong (internal) IP

    Dirk Tschentscher Newbie


      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:; nested exception is:
       java.net.ConnectException: Connection timed out]

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

      any hints appreciated