For those of you running unix, to see what ports currently have servers using them, just type:
netstat -an | grep -i listen [EMAIL PROTECTED] wrote: > > Ever wanted a way to find out what ports were free on your server? Did you > know that there's a built-in class in JRun that can tell you? I didn't, > until now. It's documented in that chapter 4 of the Setup Guide I mentioned > in the previous note. > > The section "Understanding JRun ports" indicates that it's built into the > allaire.jrun.install package, and it shows how to call it from the command > line as well as from a simple sample code snippet you can use to call it > programmatically. It'd be cool if it were automatically provided as a > pre-built servlet or JSP page, perhaps listed in the JMC or examples, or if > the command-level call to the application was available from the Start>JRun > list of choices. > > It can scan and find free ports in a given range. Beware, of course, that it > can only determine if a port's in use--it won't know if the port's been > allocated to some other service that's not running. This is another > challenge, such as when you have more than one servlet engine or app server > installed but not running, that might already be setup to use this > supposedly "free" port. > > If anyone takes the time to put together a servlet or JSP, I hope they'll > share it. > > Gee, it's amazing what things you can find when you read the manuals. :-) > (Actually, I must have read it at one time in my early JRun exploration, > perhaps before I realized how valuable a free port finder would be!) > > /charlie > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
