Page 1 of 1

getting own ip adress?

Posted: Thu Oct 30, 2003 9:35 pm
by muab256
heyas =)

is there a simple way to get your own (internet)ip adress?

ok, runprogram "ipconfig>temp.txt" then processing the temp.txt
might do the job, but it doesnt look nice...

im sure there is a simple command in pure basic (i dont know
of yet)...

ho knows? =)

thx
muab

Posted: Thu Oct 30, 2003 9:57 pm
by Saboteur
Look at the network help:

Code: Select all

InitNetwork()
ExamineIPAddresses()
Debug IPString(NextIPAddress())

Posted: Thu Oct 30, 2003 10:41 pm
by blueznl
i posted a tcp/ip sample with winsock a while back, that's another solution

Posted: Fri Oct 31, 2003 6:50 am
by AngelSoul
Take a look here:
viewtopic.php?t=7347&highlight=adapter

It is a sample code that enumerates network adapters with their current IP address

Posted: Tue Mar 16, 2004 6:28 pm
by ricardo
Thanks!! :D