Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
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
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Devaka Cooray
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Jeanne Boyarsky
Tim Cooke
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Mikalai Zaikin
Carey Brown
Bartenders:
Forum:
Beginning Java
can a server have more than one port?
Justin Fox
Ranch Hand
Posts: 802
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
can a server listen on more than one port at a time?
Justin
You down with OOP? Yeah you know me!
Scott Johnson
Ranch Hand
Posts: 518
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Yes. A
Java
process can listen on many ports.
For example,
Tomcat
supports this by allowing you to define multiple connectors in the server.xml file.
Srinivas Kalvala
Ranch Hand
Posts: 257
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello,
A program can run different threads which will listen on different ports.
But in single
thread
server can listen to only one port.
FYI:
http://www.iana.org/assignments/port-numbers
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Server is nothing but a program listening at some port..you can write a server which listens at any number of ports.
Rahul Bhattacharjee
LinkedIn
-
Blog
I would challenge you to a battle of wits, but I see you are unarmed - shakespear. Unarmed tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
a question about port
Single Instance app, need to access object outside the scope
Doubt on Protocol & Port number
Can anyone explain this JNDI setting to me?
could anyone please answer this question.....
More...