Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

port number issue

Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First bear with me if I am not posting it in the right place. I couldn't find a better place to ask this question ---

On my windows XP, I have installed lot of software like application servers, database, etc. Many of them have their own port number(s) for their admin server and managed server, etc. I am wondering --

question 1 --- Everytime when I install a new software, does it automatically check what port numbers other server/software jave used ? I guess it can't find that information. right ?

question 2 --- so, will it be a problem if my Websphere uses 9099 as admin server port, and my glass fish uses it too ? Is it true that it is OK for them to have the same port number as long as I don't start them at the same time ??

Posts: 24594
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The short answer is that it's the responsibility of the person managing the server to make sure that all the applications which want to listen on ports, listen on different ports. There's no software which will say "oh okay, I see port 9099 is taken, let's try port 9100 instead". If it did, how would the clients know to connect to port 9100 instead?

And no, two servers can't listen on the same port at the same time.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!