Solved

How should I pick a port for my new web service?

Posted on 2014-02-21
3
424 Views
Last Modified: 2014-02-24
I completed work on a new web service for my client.  My client is hosting several apps and services on their servers already, none developed by me.

How do I go about picking a port for my service to be served from?  Can it use a port that is already taken by another app/service?  Is that wise?
0
Comment
Question by:Bruce
3 Comments
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 250 total points
ID: 39878221
Do not use a port taken by another service as both services will not work properly. (But a typical exception is port 80 HTTP)

You should choose an arbitrary unused port in the Registered Port range - from 1024 through 49151 - but make it configurable in case another future application uses that port for something else and you are force to change it.
For more info check:
http://stackoverflow.com/questions/3800111/how-to-choose-which-port-to-use-for-a-service-windows-net
0
 
LVL 5

Assisted Solution

by:Kwoof
Kwoof earned 250 total points
ID: 39878656
Where will the service be accessed from?  If people will be using from outside wifi zones, like coffee shops, hotels, hospitals, other companies...you may run into trouble with them blocking ports outside the web browsing standards.

I have had trouble even using some standard items like RDP or SQL DB access from hotels and hospitals.  If other firewalls will not be in the way then as the above expert commented, the ports 1024 and above are usually available.  I would avoid 8000, 8888, 8080 and others that are commonly used by other applications.  Here is a link to a list of common ports used in applications:

http://bandwidthcontroller.com/applicationPorts.html
0
 
LVL 1

Author Comment

by:Bruce
ID: 39883602
Follow up... my client is requesting I publish my new service on port 80.  We have a dedicated server that is running nothing else but FTP on IIS.  I have posted a new question regarding this...
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

777 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