>>Any quick way to find 
  >>out which ports
  >>are free?

Bill,

There is a JRun tool you can use to find free ports from within a java app
or from the command line:

The GetControlPort utility scans a range of ports and returns the first
available one. GetControlPort is in the allaire.jrun.install package. To
invoke
GetControlPort, you must include <jrun_root_dir>/lib/install.jar in your
classpath.

*** You can invoke GetControlPort from the command line like so:
% java [-classpath ...] allaire.jrun.install.GetControlPort <min> <max>
[output file]

For example, to find the first free port between 51000 and 51999:
% java allaire.jrun.install.GetControlPort 51000 51999

*** You can also invoke GetControlPort from a Java application, as described
below:
GetControlPort has one public method, scan(). This method takes a String
array with
the lower limit of the range and the upper limit (as the following example
shows).
GetControlPort returns the first open port within that range.
For example:
        String[] portrange = new String[2];
        String openport = new String;
        portrange[0] = "8001";
        portrange[1] = "8099";
        GetControlPort gcp = new GetControlPort();
        openport = gcp.scan(portrange);
        out.println("The first open port between " + portrange[0] + " and "
+
        portrange[1] + " is " + openport);

HTH,
matt

  >>-----Original Message-----
  >>From: Bill Tindal [mailto:[EMAIL PROTECTED]]
  >>Sent: Monday, March 05, 2001 8:19 PM
  >>To: JRun-Talk
  >>Subject: Installation Problems
  >>
  >>
  >>This message is in MIME format. Since your mail reader does 
  >>not understand
  >>this format, some or all of this message may not be legible.
  >>
  >>------_=_NextPart_001_01C0A5DB.624F29F0
  >>Content-Type: text/plain;
  >>    charset="iso-8859-1"
  >>
  >>Hi everyone,
  >> 
  >>I'm new to JRun and am having trouble with the installation 
  >>and setup.
  >> 
  >>I am running Win2000 Server with SP1, IIS 5 - JRun 3.0
  >> 
  >>Installation went ok. I ran the connection wizard, had to 
  >>choose PORT 51000
  >>as I got an error on any other port. Any quick way to find 
  >>out which ports
  >>are free?
  >> 
  >>If I try to start the Admin Server from the Start/Programs 
  >>List, I get
  >>errors. Services says it is running, but errors come back 
  >>and say it is not.
  >> 
  >>What I'm really wondering is if anyone has a step-thru 
  >>guide for setting
  >>this up with the configuration above. Note: I am running CF 
  >>Server 4.5.1 as
  >>well.
  >> 
  >>thanks in advance,
  >>
  >>Bill Tindal 
  >>Senior Web Developer 
  >>
  >>soulmates T E C H N O L O G Y 
  >>CREATING GLOBAL LIFESTYLE COMMUNITIES
  >>
  >>TEL:  +61 2 9252 9611 
  >>FAX: +61 2 9252 9612 
  >>email:  [EMAIL PROTECTED] 
  >>WEB:  http://www.soulmatestechnology.com
  >><http://www.soulmatestechnology.com/>         
  >>WAP:  http://www.matchwap.com <http://www.matchwap.com/>  
  >>
  >> 
  >>
  >>------_=_NextPart_001_01C0A5DB.624F29F0
  >>Content-Type: text/html;
  >>    charset="iso-8859-1"
  >>
  >><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  >><HTML><HEAD>
  >><META HTTP-EQUIV="Content-Type" CONTENT="text/html; 
  >>charset=iso-8859-1">
  >>
  >>
  >><META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
  >><BODY>
  >><DIV><SPAN class=462080701-06032001><FONT face=Arial size=2>Hi 
  >>everyone,</FONT></SPAN></DIV>
  >><DIV><SPAN class=462080701-06032001><FONT face=Arial 
  >>size=2></FONT></SPAN>&nbsp;</DIV>
  >><DIV><SPAN class=462080701-06032001><FONT face=Arial 
  >>size=2>I'm new to JRun and 
  >>am having trouble with the installation and 
  >>setup.</FONT></SPAN></DIV>
  >><DIV><SPAN class=462080701-06032001><FONT face=Arial 
  >>size=2></FONT></SPAN>&nbsp;</DIV>
  >><DIV><SPAN class=462080701-06032001><FONT face=Arial 
  >>size=2>I am running Win2000 
  >>Server with SP1, IIS 5 - JRun 3.0</FONT></SPAN></DIV>
  >><DIV><SPAN class=462080701-06032001><FONT face=Arial 
  >>size=2></FONT></SPAN>&nbsp;</DIV>
  >><DIV><SPAN class=462080701-06032001><FONT face=Arial 
  >>size=2>Installation went 
  >>ok. I ran the connection wizard, had to choose PORT 51000 
  >>as I got an error on 
  >>any other port. Any quick way to find out which ports are 
  >>free?</FONT></SPAN></DIV>
  >><DIV><SPAN class=462080701-06032001><FONT face=Arial 
  >>size=2></FONT></SPAN>&nbsp;</DIV>
  >><DIV><SPAN class=462080701-06032001><FONT face=Arial 
  >>size=2>If I try 
  >>to&nbsp;start the Admin Server from the Start/Programs 
  >>List, I get errors. 
  >>Services says it is running, but errors come back and say it is 
  >>not.</FONT></SPAN></DIV>
  >><DIV><SPAN class=462080701-06032001><FONT face=Arial 
  >>size=2></FONT></SPAN>&nbsp;</DIV>
  >><DIV><SPAN class=462080701-06032001><FONT face=Arial 
  >>size=2>What I'm really 
  >>wondering is if anyone has a step-thru guide for setting 
  >>this up with the 
  >>configuration above. Note: I am running CF Server 4.5.1 as 
  >>well.</FONT></SPAN></DIV>
  >><DIV><SPAN class=462080701-06032001><FONT face=Arial 
  >>size=2></FONT></SPAN>&nbsp;</DIV>
  >><DIV><SPAN class=462080701-06032001><FONT face=Arial 
  >>size=2>thanks in 
  >>advance,</FONT></SPAN></DIV>
  >><P><FONT face=Arial size=2>Bill Tindal</FONT> <BR><FONT 
  >>face=Arial size=2>Senior 
  >>Web Developer</FONT> </P>
  >><P><B><FONT face="Gill Sans MT" color=#000080 
  >>size=5>soul</FONT></B><FONT 
  >>face="Gill Sans MT" color=#000080 size=5>mates</FONT> <FONT 
  >>face="Gill Sans MT" 
  >>color=#000080>T E C H N O L O G Y</FONT> <BR><I><FONT 
  >>face="Gill Sans MT" 
  >>color=#800080 size=1>CREATING GLOBAL LIFESTYLE 
  >>COMMUNITIES</FONT></I><BR><BR><FONT face="Gill Sans MT" 
  >>color=#000080 
  >>size=2>TEL:&nbsp; +61 2 9252 9611</FONT> <BR><FONT 
  >>face="Gill Sans MT" 
  >>color=#000080 size=2>FAX: +61 2 9252 9612</FONT> <BR><FONT 
  >>face="Gill Sans MT" 
  >>color=#000080 size=2>email:&nbsp; 
  >>[EMAIL PROTECTED]</FONT> <BR><FONT 
  >>face="Gill Sans MT" color=#000080 size=2>WEB:&nbsp; <A 
  >>target=_blank 
  >>href="http://www.soulmatestechnology.com/">http://www.soulma
  >>testechnology.com</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  >></FONT><BR><FONT face="Gill Sans MT" color=#000080 
  >>size=2>WAP:&nbsp; <A 
  >>target=_blank 
  >>href="http://www.matchwap.com/">http://www.matchwap.com</A></FONT> 
  >></P>
  >><DIV>&nbsp;</DIV></BODY></HTML>
  >>
  >>------_=_NextPart_001_01C0A5DB.624F29F0--
  >>Archives: http://www.mail-archive.com/[email protected]/
  >>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
  >>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to