?
Solved

Which port use for my remote app ?

Posted on 2005-04-27
6
Medium Priority
?
840 Views
Last Modified: 2008-02-01
Hi Experts,

I build a remote app and I wanted to know which port to use.

I know some ports are used for example for http (port 80) https (port 8080) ...
Are there proprietary ports ?
Can I choose the one I decided ?

Thanks in advance for your answers.
0
Comment
Question by:noulouk
  • 4
  • 2
6 Comments
 
LVL 57

Accepted Solution

by:
Pete Long earned 2000 total points
ID: 13875788

The Well Known Ports are those from 0 through 1023.

The Registered Ports are those from 1024 through 49151

The Dynamic and/or Private Ports are those from 49152 through 65535

see the iana regulations below :) though you can use any port you like, I suggest you use one of the higher ones (above 49152)
http://www.iana.org/assignments/port-numbers
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 13875792
NOTE above applies to TCP and UDP Ports :)

Pete
0
 
LVL 9

Author Comment

by:noulouk
ID: 13875880
Thank you very much PeteLong for this quick and very helpful answer.
Do I have to pay to use a registred port or well known port ? Is it possible to buy one ?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 57

Expert Comment

by:Pete Long
ID: 13876380
My very great pleasure - probably be the last points I ever get in C# being a network/server type LOL

>>Do I have to pay to use a registred port or well known port ? Is it possible to buy one ?

Good Question :) to be honest Id just use one - in days of old when you clever programmer types got an application to work on a different port number it was called hacking - now Microsoft release RPC over HTTP (On port 80) and call it a feature!

There is probably a way to register a port with IANA but if there are any left Im willing to bet they would be very expensive. Bear in mind Even Microsoft SERVER systems use dynamic RPC ports starting at 1024 and even they are not bothered (dynamic RPC will use any port number over 1024 and is central to domain authentication and to log into an exchange server for example) so If your application uses a port above 1024 you will be safe.

To be honest the biggest mistake you can make is not document the port you are using - so when us poor unwashed techs try and roll the application out we dont spend hours with a port sniffer trying to work out what ports to open on the firewall :)

Best Wishes

Pete
0
 
LVL 9

Author Comment

by:noulouk
ID: 13879640
If you're not yet a Genius Expert in C#, you are one in network/server.

Congratulations and thanks again.
Regards.
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 13880338
No Probs Hope to see you over on the "Dark Side" of the site sometime :)

Pete
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Loops Section Overview
Suggested Courses
Course of the Month17 days, 1 hour left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question