Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-11-2004, 08:22 AM
Junior Member
 
Join Date: Dec 2004
Posts: 1
Default Is there any way to get all the Ip on a network

Hi im a newbie

i need to know if its possible to get all the Ip nodes on a network, ip addresses that is, if so how, and also what are Network interfaces

Regards

Peter
Reply With Quote
  #2 (permalink)  
Old 12-16-2004, 07:32 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Is there any way to get all the Ip on a network

Please try the ipenum.dll, it can only works on Windows NT/2000/XP
Reply With Quote
  #3 (permalink)  
Old 12-21-2004, 06:59 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Is there any way to get all the Ip on a network

The ipenum.dll exports five functions:

1. OpenIPEnumHandle()
this function returns a ip enumerating handle (integer)

2. CloseIPEnumHandle(handle)
this function closes the opened handle, you must call this function after enumerating

3. GetIPCount()
this function returns the count of the neighbors in the network. Integer.

4. GetIPName(index)
this function returns the name of the specified neighbor in the network. String Pointer.

5. GetIPAdress(index)
this function returns the ip address of the specified neighbor in the network. String Pointer

Usage:

1. Define the functions in swfkit, see the ipenum sample in the forum

2. Open an enumerating handle
var handle = openIPEnum(); //openIPEnum is the alais of the OpenIPEnumHandle function defined in swfkit

A handle of 0 means that the network cannot be enumerated. This often happens in win9x

3. Get the count of the neighbor in the network
var count = getIPCount();

4. Print the name and address of each neighbor in the network
Code:
for (var i = 0; i < cnt; i++)
{
***var hostname = Dll.getPointerStringValue(getIPName(handle, i));
***var address = Dll.getPointerStringValue(getIPAdress(handle, i));
***
***trace(hostname);
***trace(address);
}
Both the GetIPName and the GetIPAdress function return a string pointer.

5. Close the handle
closeIPEnum(handle);
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:31 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.