Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8042232

rmi client get wrong server-address while server machine has two networkInterfac

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • tbd
    • 6u45, 7u45, 8
    • core-libs
    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.8.0"
      Java(TM) SE Runtime Environment (build 1.8.0-b129)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b69, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Win7 SP1 x64

      A DESCRIPTION OF THE PROBLEM :
      I have got a machine with two network interfaces, and connect to two different network. two network interface addresses: 192.168.1.100/24 and 192.168.238.1/24.

       I start a RMI server on port 8030 and bind a remote object to port 8031, while the client(192.168.1.104/24) run in another machine, when the client connect to server(8030), it get a proxy object with a wrong endpoint(192.168.238.1:8031), which should be (192.168.1.100:8031), and it fails to connect to the remote object , throws an exception:java.rmi.ConnectException: Connection refused to host: 192.168.238.1; nested exception is:
              java.net.ConnectException: Connection timed out: connect...

      REGRESSION. Last worked in version 8


      REPRODUCIBILITY :
      This bug can be reproduced always.

            smarks Stuart Marks
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: