Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How can I get Remote Address from Object? (Java RMI)

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Thanked 0 Times in 0 Posts

    Default How can I get Remote Address from Object? (Java RMI)


    I have a problem with using Java RMI such that,

    My Client class is like this;

    String remote_address=...;

    Server_Int remobj= (Server_Int) Naming.lookup(remote_address);

    String str=....;

    String str=remobj.send(str);

    Now I have a remote object as "remobj",

    And I want to reach its connection address "remote_address"

    How can I find this address?

    Thanks a lot....

  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Thanked 832 Times in 772 Posts
    Blog Entries

    Default Re: How can I get Remote Address from Object? (Java RMI)

    This thread has been cross posted here:


    Although cross posting is allowed, for everyone's benefit, please read:

    Java Programming Forums Cross Posting Rules

    The Problems With Cross Posting

Similar Threads

  1. Java Code to connect remote server
    By idealguy in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: August 3rd, 2012, 04:59 AM
  2. Address Book program in Java
    By DaveNAchill in forum Paid Java Projects
    Replies: 3
    Last Post: January 6th, 2012, 04:03 AM
  3. Address Book Program in java
    By DaveNAchill in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 11th, 2011, 09:25 AM
  4. Replies: 0
    Last Post: October 13th, 2011, 07:05 PM
  5. Replies: 2
    Last Post: October 29th, 2010, 03:14 AM