• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: setting the port for a running wo app (more information)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting the port for a running wo app (more information)


  • Subject: Re: setting the port for a running wo app (more information)
  • From: Tarun Reddy <email@hidden>
  • Date: Thu, 6 May 2004 12:08:35 -0600

To find out what ports to avoid, check out the file /etc/services. Those are a list of all registered (and some unregistered) ports. On any give machine most of these won't be in use, but it is fairly comprehensive and a good general rule (in addition to the >1024 and <65535 rule).

If you want to see if the port you want to use is in use, do this:

sudo lsof | grep <port number>

also cool, but generally not as useful:

sudo lsof | grep TCP

which shows you all open TCP connections on your machine.

if anything returns, then a process is using that port. The second column is the actual PID for that process.

Tarun

On May 6, 2004, at 10:49 AM, Arturo Perez wrote:

John Spicer wrote:

By uncommenting this line "WOPort=55555"in the Properties file it now always points to that port. That's great.
I wanted to have another number so I changed it to 362436 and saved, rebuilt, etc. The app won't run, it always exits with status 1.

Hah! That's a funny one. Internet Protocol port numbers are stored in an unsigned 16 bit quantity. So, please, try to keep your port numbers below 65535 (or thereabouts). Also, ports below 1024 are restricted use/privileged ports. So, please try to keep your ports above 1024. Finally, many applications/daemon processes use various ports for their own (probably nefarious) reasons. So, try to avoid using any of those (e.g. telnet's port, ftp's port, http's port, etc).


I guess the upshot is that you can't just use any port you may feel like. The port you choose must be somewhat carefully considered and researched.

-arturo
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: setting the port for a running wo app (more information)
      • From: John Spicer <email@hidden>
References: 
 >setting the port for a running wo app (From: John Spicer <email@hidden>)
 >Re: setting the port for a running wo app (more information) (From: John Spicer <email@hidden>)
 >Re: setting the port for a running wo app (more information) (From: Arturo Perez <email@hidden>)

  • Prev by Date: Re: setting the port for a running wo app
  • Next by Date: Re: setting the port for a running wo app (more information)
  • Previous by thread: Re: setting the port for a running wo app (more information)
  • Next by thread: Re: setting the port for a running wo app (more information)
  • Index(es):
    • Date
    • Thread