Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Sep : Re: How can i get the ip's NetWork Mask
| Subject: | Re: How can i get the ip's NetWork Mask |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Thu, 21 Sep 2006 11:58:49 |
"juan" <nosapm@nospam.com> wrote in message
news:4512d971@newsgroups.borland.com...
> I need obtain the netmask of the server's ip. How can do that?
Is your code running on the server machine to begin with? If so, then look
at the Win32 API GetAdaptersInfo() function. It can return the IP and
Subnet for every network adapter on the machine.
Otherwise, there is no way to obtain a mask from an IP alone.
Gambit