Emailid
Password
         
  
    Forgot password

New user Sign Up
 

 

Need IP address for ethernet devices                            

Author Name Status Posted Time
Larry Coons 3/31/2009 9:58:34 PM
Author is Offline

Hi all,

I have a requirement that my software is supposed to support multiple installed ethernet devices. I need to get the IP address for a user specified device so that I can broadcast a UDP message.

In Linux it is accomplished using the ioctl command SIOCGIFADDR. First a socket is opened, the structure ifreq.ifr_name is set to the ethernet device you want to retrieve the IP address. Normally it will be "eth0"
for the first device.

I don't know how to do it in Windows.

Hopefully someone out there knows how to do this?

Larry. 

 

Subject Author Status Date

Re: Need IP address for ethernet devices

Yvonnet Vogel 3/31/2009 11:22:10 PM

Re: Thanks

Larry Coons 3/31/2009 11:22:56 PM

Re: I had to switch over to Visual Studio 2005

Larry Coons 3/31/2009 11:23:33 PM

Re: First detected adapter....

Yvonnet Vogel 3/31/2009 11:24:23 PM
Related Forums
Get a Website Template for Free!!!
Get a Website Template for Free!!!
I Need a Fast Site Redirection Script
Need a Log in System
Need a Log in System





Home | About Us | Site Map | Privacy Policy