Re: Detecting local IP and netmask

Giganews Newsgroups
Subject: Re: Detecting local IP and netmask
Posted by:  Remy Lebeau (TeamB) (
Date: Thu, 4 Mar 2004

"Crimson Rider" <rid…> wrote in message
> I have an application that needs to display the
> local IP address and netmask.

The local IP addresses are easy enough to get, just use the global
GStack.LocalAddresses property.

The local netmasks, on the other hand, are not natively provided by Indy at
all.  The only ways I know to get them is via the Win32 API
GetAdaptersInfo() function, or via Microsoft's undocumented INETMIB1.DLL




In response to

Detecting local IP and netmask posted by Crimson Rider on Thu, 4 Mar 2004