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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

A question on multiple tcp listeners for the same port?

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi everybody,
I am wondering if there is a way to establish multiple tcp listeners for the same port (eg 80)?The idea is trying to develop a server component which can response to the clients through the http port 80 in order to avoid firewall restriction. But it should co-exist with other installed servers (eg Apache, IIS, etc).
I searched on the internet, seems it is a mission impossible with java tcp sockets.
I know UDP can use the same port which is already occupied by another tcp lisenter. But it seems that there is a way to do that in tcp, since my boss is so sure that he emphasize it is http based communication component. I think that means there should be a reliable connection between the server and client. Or maybe I should use udp to implement a reliable connection for the communication?
Does anyone can give me some suggestions? Thanks a million!
Regards,
Joe
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi Joe,
Welcome to JavaRanch. Please do not cross post topics. Choose a single forum for each topic. Thank you for your cooperation.
Closing this. Please respond here.
 
Police line, do not cross. Well, this tiny ad can go through:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic