Exploring entire network

  • Thread starter Thread starter Finn Stampe Mikkelsen
  • Start date Start date
F

Finn Stampe Mikkelsen

Hi

Is there any intelligent way to similate windows function to show a map of
the entire network visible to an application??

My job is this...:

Picture a LAN/WLAN with 5 computers connected through a router. I need to
run an application which as its first task needs to map out which other
computers it can se in the network. Then it needs to 'ping' a certain port
on any given ip to se, if that computer is running this application. Then it
will start up a communication with each of these computers and the
particular program on that computer.

Short of inputting the ip's given out on each computer or running a specific
server application keeping track of this, is there a way to do this
intelligently without having to scan all possible ip's in the 192.168.x.x
pool?? This seems to me as being slow and extremely low-tech...

Code-sniplet would be greatly appreciated....

/Finn

--
Der er 10 slags mennesker - Dem som forstår binær og dem som ikke gør.
There are 10 kinds of people. Those who understand binary ant those who
don't.
Es gibt 10 arten von menschen. Die die binär verstehen bzw. die die es nicht
tuhen
 
Hi Patrice

Yes, the application is actually one i'm planning to code myself..

The need is for this application to know who is also playing along and then
later communicate in order to assure correct handling of data. It's some
logging software which has several settings, bu no 2 computer may run the
same setting and thereby log the same area. Also som information exchange
(chat ect.) may be added later on...

As i understand your reference, i can broadcast the network upon startup
with i.e. my own ip number. Any recieving computer / app could then reply
with it's own ip to the sender application thereby insuring everybody has
everybody in their list..

Do i read that correctly??

/Finn

--
--
Der er 10 slags mennesker - Dem som forstår binær og dem som ikke gør.
There are 10 kinds of people. Those who understand binary ant those who
don't.
Es gibt 10 arten von menschen. Die die binär verstehen bzw. die die es nicht
tuhen
 
Yes I was thinking about something like :
- sending a broadcast on the network
- running applications could then respond

Another thing I was thinking of would be to have each application
registering itself at launch to a central location.

Depends if it's more a peer to peer (I believe I have seen something about
that lately at the MSDN site, an API possibly in managed code or an
extension to WCF ?) or a many to one architecture (this one handling
relaying messages to other subscribers) you are looking for...
 
Hi Patrice

That will serve my purpose fine....

Actually using an SQL server with the data located here and table lock would
do the same, but since this is not possible in this particular instance, i
thought i would do it like this...

Each application checkes to se what other computers running the same appz is
visible. Then it can communicate with them and the status can be exchanged.
Each program then runs data localized to be combined at a later date upon
end of operation. This i okay in the present setup....

I will play around with this and se if i can get it to work...

Thanks

/Finn

--
--
Der er 10 slags mennesker - Dem som forstår binær og dem som ikke gør.
There are 10 kinds of people. Those who understand binary ant those who
don't.
Es gibt 10 arten von menschen. Die die binär verstehen bzw. die die es nicht
tuhen
 
Back
Top