Good point. Don't know much about java. would it be accepatble
to specify a range of ports, say between 30000 and 50000 (which looks
empty, according to my scan of /etc/services) and try a random port in
that range? Maybe picking a random port there, try binding to it, then,
if the installer could successfully bind to the port, then asking the user
if this is acceptable?
----------------------------------------------------------------------
Matt Rose --- mattrose at folkwolf.net --- http://folkwolf.net
Sufficiently advanced cluelessness is indistinguishable from malice
----------------------------------------------------------------------
On Tue, 29 Aug 2000, Oskar Sandberg wrote:
> On Mon, Aug 28, 2000 at 10:58:50PM -0400, Matt Rose wrote:
> >
> > I think the point you were trying to make (and I could be WAY off
> > here) is that all machines have some kind of netstat command that shows
> > what ports are listening. "netstat -a" is very cross platform. It works
> > on all versions of windows and unix that I've seen, (I have no idea if
> > there's a mac equivalent, tho) and it'll give you a definitive list of all
> > ports that are presently in use. Combine this with the services list for
> > each OS, and you have a fairly good list of what ports to avoid.
>
> Netstat will only show the currently bound ports, so how is that an
> improvement over trial and error which we know will work on all java
> platforms?
>
> >
> > ----------------------------------------------------------------------
> > Matt Rose --- mattrose at folkwolf.net --- http://folkwolf.net
> > Sufficiently advanced cluelessness is indistinguishable from malice
> > ----------------------------------------------------------------------
>
> --
> \oskar
> _______________________________________________
> Freenet-dev mailing list
> Freenet-dev at lists.sourceforge.net
> http://lists.sourceforge.net/mailman/listinfo/freenet-dev
>
_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev