Link to home
Start Free TrialLog in
Avatar of noulouk
noulouk

asked on

Which port use for my remote app ?

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.
ASKER CERTIFIED SOLUTION
Avatar of Pete Long
Pete Long
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
NOTE above applies to TCP and UDP Ports :)

Pete
Avatar of noulouk
noulouk

ASKER

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 ?
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
Avatar of noulouk

ASKER

If you're not yet a Genius Expert in C#, you are one in network/server.

Congratulations and thanks again.
Regards.
No Probs Hope to see you over on the "Dark Side" of the site sometime :)

Pete