In a message dated 8/28/00 8:22:43 PM Pacific Daylight Time, md98-osa at nada.kth.se writes:
> > 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? I think everyone is overthinking this. Generate a random port number, check it against a services list (why do you need to read this from the filesystem, just include it in the code itself or with the distribution), try to bind a listening socket to it, and finally ask the user for confirmation (or not, doesn't matter). That's all you have to do. -lmh _______________________________________________ Freenet-dev mailing list Freenet-dev at lists.sourceforge.net http://lists.sourceforge.net/mailman/listinfo/freenet-dev
