How to Bind Remote Object particular WAN IP Address

Discussion in 'Java' started by sherazi, Oct 25, 2005.

  1. sherazi

    sherazi Guest

    On my Remote Server there are two Ethernet Adapter attached. one
    Adapter configure with LAN Network and Second with WAN Network I want
    to bind my remote object with particular WAN IP address .How I can set
    WAN IP address to which remote object can be bind.

    Following is the code for binding the object

    systemProperties.put("java.rmi.server.hostname", WANIP);
    Registry reg =
    LocateRegistry.createRegistry(Constants.RMI_REGISTRY_PORT);
    reg.rebind("My Object", remoteobject);

    here is problem my object bind with LAN IP address. When I have set
    the WAN IP in System Properties.


    Thanks in Advance.
     
    sherazi, Oct 25, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mr2_93
    Replies:
    1
    Views:
    3,908
    mr2_93
    Oct 2, 2005
  2. sherazi
    Replies:
    3
    Views:
    630
    Roedy Green
    Oct 25, 2005
  3. Swarna
    Replies:
    1
    Views:
    342
    Mike Meyer
    Nov 10, 2005
  4. Replies:
    0
    Views:
    798
  5. Dinesh P
    Replies:
    2
    Views:
    379
    Jack Klein
    Dec 26, 2007
  6. Giovanni Gherdovich
    Replies:
    3
    Views:
    1,376
    Giovanni Gherdovich
    Aug 28, 2008
  7. ralderton
    Replies:
    0
    Views:
    450
    ralderton
    May 10, 2009
  8. Pokkai Dokkai
    Replies:
    20
    Views:
    438
    Pokkai Dokkai
    Apr 17, 2008
Loading...