Solved

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

Posted on 2014-02-21
3
437 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 36

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

Industry Leaders: 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 document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

724 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