forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Get IP address from within a network

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Mar 08, 2004 10:57 pm    Post subject: Get IP address from within a network Reply with quote

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. Very Happy

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Mon Mar 08, 2004 11:08 pm    Post subject: Reply with quote

Did you try these netstat commands: Wink

netstat -n

netstat -p tcp

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Mon Mar 08, 2004 11:13 pm    Post subject: Reply with quote

Actually just the first one... Embarassed
_________________
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
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Mar 08, 2004 11:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Mar 09, 2004 7:44 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Tue Mar 09, 2004 9:31 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Protected
Valued Contributor
Valued Contributor


Joined: 02 Jan 2001
Posts: 228
Location: Portugal

PostPosted: Tue Mar 09, 2004 12:26 pm    Post subject: Reply with quote

ipconfig is the dos command. It returns both IPs
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Mar 09, 2004 1:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group