Networking Forums

Networking Forums > Computer Networking > Linux Networking > how to choose port

Reply
Thread Tools Display Modes

how to choose port

 
 
Mike - EMAIL IGNORED
Guest
Posts: n/a

 
      03-04-2006, 05:22 PM
I have written a special purpose server
that I plan to put on the Internet. Is
there guidance on what ports I should
or should not use?
Thanks,
Mike.

 
Reply With Quote
 
 
 
 
Ken Sims
Guest
Posts: n/a

 
      03-04-2006, 07:14 PM
Hi Mike -

On Sat, 04 Mar 2006 13:22:50 -0500, Mike - EMAIL IGNORED
<(E-Mail Removed)> wrote:

>I have written a special purpose server
>that I plan to put on the Internet. Is
>there guidance on what ports I should
>or should not use?


http://www.iana.org/assignments/port-numbers

You should probably stay away from the "Well Known Ports" (0 to 1023).

--
Ken
http://www.kensims.net/
 
Reply With Quote
 
LordGarak@gmail.com
Guest
Posts: n/a

 
      03-04-2006, 07:32 PM
Most specialized servers use a port number between 1024-9999. Randomly
pick one and check that nothing else uses it. Alot of private networks
like the one at my college filter out alot of these ports, so if you
plan on making this publically accessable you might run into problems.
If I was writing something today, I'd try and make it run on top of
http protocol and write it as a cgi script or module for apache. That
way you can use port 80 without hogging the port. That also makes it
easy to write clients in stuff java.


Mike - EMAIL IGNORED wrote:
> I have written a special purpose server
> that I plan to put on the Internet. Is
> there guidance on what ports I should
> or should not use?
> Thanks,
> Mike.


 
Reply With Quote
 
Steve Welsh
Guest
Posts: n/a

 
      03-04-2006, 07:39 PM
(E-Mail Removed) wrote:
> Most specialized servers use a port number between 1024-9999. Randomly
> pick one and check that nothing else uses it. Alot of private networks
> like the one at my college filter out alot of these ports, so if you
> plan on making this publically accessable you might run into problems.
> If I was writing something today, I'd try and make it run on top of
> http protocol and write it as a cgi script or module for apache. That
> way you can use port 80 without hogging the port. That also makes it
> easy to write clients in stuff java.
>
>
> Mike - EMAIL IGNORED wrote:
>> I have written a special purpose server
>> that I plan to put on the Internet. Is
>> there guidance on what ports I should
>> or should not use?
>> Thanks,
>> Mike.

>


1024 to 65535 - size of a 16 bit int
 
Reply With Quote
 
LordGarak@gmail.com
Guest
Posts: n/a

 
      03-05-2006, 03:16 PM

Steve Welsh wrote:
> (E-Mail Removed) wrote:
> > Most specialized servers use a port number between 1024-9999. Randomly
> > pick one and check that nothing else uses it. Alot of private networks
> > like the one at my college filter out alot of these ports, so if you
> > plan on making this publically accessable you might run into problems.
> > If I was writing something today, I'd try and make it run on top of
> > http protocol and write it as a cgi script or module for apache. That
> > way you can use port 80 without hogging the port. That also makes it
> > easy to write clients in stuff java.
> >
> >
> > Mike - EMAIL IGNORED wrote:
> >> I have written a special purpose server
> >> that I plan to put on the Internet. Is
> >> there guidance on what ports I should
> >> or should not use?
> >> Thanks,
> >> Mike.

> >

>
> 1024 to 65535 - size of a 16 bit int


Yes those are the limits, but most people try to keep it to 4 base10
digits so its easier to remember.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
who to choose next? h3r0 Broadband 3 04-22-2005 10:03 PM
which isp should I choose please? lu Broadband 21 01-18-2005 11:43 AM
Which To Choose TomB Wireless Networks 3 11-06-2004 01:49 PM
so many to choose from Stevie Broadband 14 07-06-2004 01:51 PM
Please help me choose an ISP The Crusader Broadband 13 06-02-2004 06:52 AM



1 2 3 4 5 6 7 8 9 10 11