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 6957677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:02:13+00:00 2026-05-27T15:02:13+00:00

I have a few server that is mirrored with JGroup. Recently there are some

  • 0

I have a few server that is mirrored with JGroup. Recently there are some unexpected behavior where it is out of synch and base on the log, the Jgroup will disconnect from time to time. I would like to write a small program within the JGroup code to email out once the JGroup has disconnected and report which machine has disconnected.

The problem is, Base on the JavaDoc i cant seem to able to extract the Physical IP Address from the Member or View. Anyone knows how can i do that?

  • 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-27T15:02:14+00:00Added an answer on May 27, 2026 at 3:02 pm

    This is a hack, but it works. The JGroups team has stated that this is dangerous as they could change the underlying code at any time, so use with caution.

    public void receive(Message msg) {
        String srcIp;   
        Address addr = msg.getSrc();
    
        PhysicalAddress physicalAddr = (PhysicalAddress)channel.down(new Event(Event.GET_PHYSICAL_ADDRESS, addr));
    
        if(physicalAddr instanceof IpAddress) {
            IpAddress ipAddr = (IpAddress)physicalAddr;
            InetAddress inetAddr = ipAddr.getIpAddress();
            srcIp = inetAddr.getHostAddress();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to choose a server pages technology for a few server components that
I have a folder on my remote server that has a few .png files
I have this senario. We have an application server that contains a few web
We have a few tables with persisted computed columns in SQL Server. Is there
We have a few different websites running on the same server that all access
I have a few SQL Server tables with a datetime field that really only
I have a server that is hosting my 'bare' GIT repo for a few
I have a dedicated server that hosts about 70 domains... some are just plain
I have created a few stored functions in SQL Server that return a table
currently we have a TFS Server that has a few files with many branches,

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.