This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Finding Out My Own IP-Address
- To: gnu-win32 at cygnus dot com
- Subject: Finding Out My Own IP-Address
- From: Oliver Copp <lyger at fh-landshut dot de>
- Date: Wed, 6 May 98 22:55:11 MESZ
- Mailer: Elm [revision: 70.85]
Hi !
Is there a function which allows me to find out my current IP address ?
My best guess was to use gethostbyname("localhost") but that always returns
127.0.0.1.
When I dial in to my provider via NT-RAS, I'm assigned a dynamic IP address -
which is what I'm trying to find out.
Anyone ;-) ?
Thanks in advance.
Oliver Copp ________ ___ __ _ _
copp@tnm.simplenet.com |__ __| \| | / \ / \
http://tnm.simplenet.com/ | | | |\ |/ \/ \
TNM - The Wrestling Simulator |__| |__| \__|___/\/\___\
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".