Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

A question on multiple tcp listeners for the same port?  RSS feed

 
Joe J. Wang
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • 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
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • 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.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!