[lazarus] IP Address

Shane Miller smiller at lakefield.net
Sun May 14 19:46:02 EDT 2000


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.

Thanks
---------------------------------------
Shane Miller
Take a look at other product/projects of mine below!

Get paid to surf the net!
http://alladvantage.com/go.asp?refid=DEX-870

Get paid to surf the net by clicking here too!!!
http://epipo.com/sine.asp?dex870

Home page : http://www.lakefield.net/~smiller

Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip

Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard

Lazarus : http://www.lazarus.freepascal.org

----- Original Message -----
From: "Sebastian Günther" <sguenther at gmx.de>
To: <lazarus at miraclec.com>
Sent: Sunday, May 14, 2000 4:23 PM
Subject: Re: [lazarus] IP Address


> Shane Miller wrote:
> >
> > What function(s) do I use to get the IP address of the linux box via
FPC?
>
> Why don't you just use 127.0.0.1 (a.k.a. "localhost")?
> A Linux _box_ doesn't have a specific IP address, as IP addresses are
> assigned to _interfaces_, not to computers! So you would have to get a
> list of the local network interfaces together with their IP addresses.
>
>
> - Sebastian
>
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>     archives at http://www.miraclec.com/list_archives/lazarus
>






More information about the Lazarus mailing list