• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Network Change Event in Java on Mac-OS

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I am working on a application which needs to send IP address of client-pc, every time it gets changed.

I am working on mac-os with JAVA as a programming language , Can you please let me know any API/References for the same?

Appreciate your help.

Regards,
Hardik Shah
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will need to rephrase your problem.
Send IP where? What gets changed? The client? Client IP? Anything else?
Since you explicitly mention Mac OS, is there any special dependency?

To obtain the IP address of the machine on which your Java code is running, you can use InetAddress
 
Hardy Shah
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Maneesh,

Sorry for my lack of explanation.

There can be several reasons that may be responsible for IP address to get changed on a client-pc. For example, I changed my laptop's network configuration from wired connection to wireless connection.

Using Java Platform, I want to receive events when-ever there is change in NetWork-Interface (IP-Address of laptop).

I found .Net equivalent for the same http://msdn.microsoft.com/en-us/library/system.net.networkinformation.networkchange.networkaddresschanged.aspx. But nothing for JAVA.

I hope above explanation clarifies the things.

Thanks

Regards,

Hardik Shah

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic