Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7181991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:40:26+00:00 2026-05-28T17:40:26+00:00

I have functioning RMI client-server system. The server’s host information is known to the

  • 0

I have functioning RMI client-server system. The server’s host information is known to the clients so they can look it up and make calls. On first call to the server, the clients pass the server a remote reference of “themselves” so that the server can make callbacks. The server maintains a list of the all connected clients (when a client shuts down it “unregisters” from the server, and there is a thread that periodically checks if the clients are reachable and evicts the ones that are not).

There is a graphical interface (part of a webapp) on the server that allows the users to visualize the clients that are connected at any time. Now I am asked to display the clients’ IP address in this interface.

My question : in RMI, if you have a remote reference of a remote object (a stub), is there a simple way to determine the host (DNS name or IP address) on which this remote object actually lives ?

Note : I could use RemoteServer.getClientHost when the client first connects and store the info, or I could implement a remote method on the client that returns the host info, but I wish to know if there is a built-in RMI way of doing it with the remote reference.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:40:27+00:00Added an answer on May 28, 2026 at 5:40 pm

    RMISecurityManager and the UnicastRemoteObject don’t say anything about that.
    You can use the RemoteServer.getClientHost when the client connects.
    I don’t believe that this information can be obtained unless it is passed in the remote method call.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a control that is basically functioning as a client-side timer countdown control.
I have a web.config of a functioning MOSS server with our custom settings and
I have my Sharepoint Server 2010 set-up and everything appears to be functioning correctly.
We have an application deployed in Websphere application server 7. Its deployed and functioning
I currently have a functioning in-house Windows Forms application which extensively uses the DataGridView
If I have a STOMP/JSON AJAX app, does that mean that JSON is functioning
Have you ever seen any of there error messages? -- SQL Server 2000 Could
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a
I have a functioning Silverlight 4 application (VS2010, SL4, WCF RIA, hosted on my
Here's the idea. I'm coding a chat bar, I have everything functioning. But my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.