realbasic-nug
[Top] [All Lists]

Re: Finding all machines on a network that are listening on a port

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Finding all machines on a network that are listening on a port
From: Keith Hutchison <thinker at balance-infosystems dot com>
Date: Sun, 1 Aug 2004 03:45:46 +1000
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <01ed01c476c7$4b1df340$6b64a8c0 at KEITHXP> <033c01c47712$adc56cd0$2be15340 at Circe>
Hi Aaron,

On 01/08/2004, at 1:25 AM, Aaron Ballman wrote:

What is the best way to find machines on a network that have ports open.
eg I want to find all the machines on the local network that have port
4563
open

You are wondering how to do a "port scan" and the short answer is: why do
you need to do this?

I am using port 4563 as my port inside a clients site.
I want to be able to look at the local net and see if any machines have been set to be a server by the client

It's complicated to do it properly.  If you just need
something very simple and don't mind abusing the local network, then you can simply loop over all the local addresses (using the netmask to determine
what IPs are "local") and try connecting on that port.


I thought about the brute force method ( which I will use if I can't find another way )
Isn't there some way of broadcasting to the whole internal net at once?

Keith

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>