Has anyone got a the binary of the current version of Lazarus that they could give it to…
Shane Miller wrote 7 lines
"/sbin/route" should do it (parse the output)
or the "/proc/net/route" file contains the info too.

Mailing lists / lazarus / 2000-05
6 messages · 5 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Has anyone got a the binary of the current version of Lazarus that they could give it to…
"/sbin/route" should do it (parse the output)
or the "/proc/net/route" file contains the info too.
Has anyone got a the binary of the current version of Lazarus that they could give it to…
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
Has anyone got a the binary of the current version of Lazarus that they could give it to me... I would like to see what it looks like before start developing
________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
What function(s) do I use to get the IP address of the linux box via FPC? ---------------------------------------
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
Has anyone got a the binary of the current version of Lazarus that they could give it to…
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
Has anyone got a the binary of the current version of Lazarus that they could give it to…
Shane Miller wroteWhat 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