| View previous topic :: View next topic |
| Author |
Message |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Mar 08, 2004 10:57 pm Post subject: Get IP address from within a network |
|
|
Is there a way to get the IP address from within a network? If I use
vdsonline.dll I can only get my computer's IP on the network - not the
network's IP.
I'd rather do it without having to connect to a remote server to have it
return the IP.
Any thoughts or advice would be very helpful.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Mar 08, 2004 11:08 pm Post subject: |
|
|
Did you try these netstat commands:
netstat -n
netstat -p tcp
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Mar 08, 2004 11:13 pm Post subject: |
|
|
Actually just the first one...  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Mar 08, 2004 11:15 pm Post subject: |
|
|
Thanks for the help... I'll certainly consider this way, but is there a way
with the API or something that returns a definite or null result? _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Mar 09, 2004 7:44 am Post subject: |
|
|
not sure if this is going to help...there is a dos command that will return your ip address...you could then extract the info from the text file that you could make it create...the usual stuff...
the problem is that i can't remember the dos command
serge _________________
|
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue Mar 09, 2004 9:31 am Post subject: |
|
|
VDS Internet Suite 2 has an example showing how to do this, called resolver.
But bear in mind that if, like me, you're connected to the Internet using an external router, there is no way to find out the network IP address from Windows. You can only do it if a network adapter in the PC itself is the Internet gateway. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Protected Valued Contributor


Joined: 02 Jan 2001 Posts: 228 Location: Portugal
|
Posted: Tue Mar 09, 2004 12:26 pm Post subject: |
|
|
| ipconfig is the dos command. It returns both IPs |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Mar 09, 2004 1:09 pm Post subject: |
|
|
Thanks for the info everyone...
Jules, you answered my question - I'm triyng to get the IP from a computer
on a LAN and am behind a hub/router. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
|