[lazarus] IP Address

Marc Weustink weus at quicknet.nl
Sun May 14 19:59:43 EDT 2000


At 19:05 14-05-2000 -0500, Shane Miller wrote:
>That's exactly what I want to do.
>I know IP addresses aren't assigned to the PC.  I was asking it as a general
>question.  I didn't think I needed to get that specific.
>Here is the question restated:
>How do I get the IP address(es) of the network card(s) on a linux box?  I
>don't want to use localhost because that IP address isn't usable outside
>that PC.  In windows I do a gethostname then a GetHostByName which returns a
>record containing the IP addresses.

In other words:

Is there a TSocket implementation. (the WinSock implementation is only a 
subset of the unix socket implementation so GetHostByName should be 
available somewhere)

Marc







More information about the Lazarus mailing list