In Free Pascal, how can I get my own IP address (dinamically assigned by my isp) ??
I want to make a small program which send me ( to the mobile) the address and ip of my machine
every time it connects to the internet via modem.
Mailing lists / fpc-pascal / 2001-04
Own IP
6 messages · 4 people · –
- Jjordi 3
- CCabuzel Thierry 1
- CCarlo Kok 1
- UUnknown author 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Salutacions.
Jordi
http://perso.wanadoo.es/jovy
What os?
Earlier message 28 lines
----- Original Message -----
From: "jordi"
To: "Free Pascal"
Sent: Sunday, April 01, 2001 2:18 PM
Subject: [fpc-pascal]Own IP
> In Free Pascal, how can I get my own IP address (dinamically assigned by
> my isp) ??
> I want to make a small program which send me ( to the mobile) the
> address and ip of my machine
> every time it connects to the internet via modem.
>
> --
> Salutacions.
>
> Jordi
>
>
> http://perso.wanadoo.es/jovy
>
>
>
>
> _______________________________________________
> fpc-pascal maillist -
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
You parse the outpout of the command ifconfig, on the line ppp0 you find your current IP adress.
Show quoted text 29 lines
-----Original Message-----
From: jordi
Sent: dimanche 1 avril 2001 15:10
To:
Subject: Re: [fpc-pascal]Own IP
Carlo Kok wrote:
> What os?
>
>
LINUX.
--
Salutacions.
Jordi
http://perso.wanadoo.es/jovy
_______________________________________________
fpc-pascal maillist -
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Cabuzel Thierry wrote 33 lines
You parse the outpout of the command ifconfig, on the line ppp0 you
find your current IP adress.
-----Original Message-----
From: jordi
Sent: dimanche 1 avril 2001 15:10
To:
Subject: Re: [fpc-pascal]Own IP
Carlo Kok wrote:
> What os?
>
>
LINUX.
--
Salutacions.
Jordi
http://perso.wanadoo.es/jovy
_______________________________________________
fpc-pascal maillist -
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Thanks.
This is a good way,
Salutacions.
Jordi
http://perso.wanadoo.es/jovy
in the example of the packages/uncgi/testcgi.pp
i think that set_content('text/html') is missed after the call of cgi_init; tested under linux
Lionel Drevon
Adeli http://www.adeli.fr
618 Av. Gal de Gaulle Tel 04 78 66 11 85
69760 Limonest Fax 04 78 66 04 33
