aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes two processes listening to the same port Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "two processes listening to the same port" Watch "two processes listening to the same port" New topic
Author

two processes listening to the same port

Gotham Sewani
Greenhorn

Joined: Feb 16, 2007
Posts: 15
The game 'age of empires' is quiet famous on our LAN and we play multiplayer matches quiet often. Now,aoe listens to some specific ports while playing multiplayer matches. Is it possible to write a java code that listens to the same ports,and finds out the IP address of the machine trying to connect? Two processes listening to the same ports wont cause any problems?
Chris Beckey
Ranch Hand

Joined: Jun 09, 2006
Posts: 116

Assuming just one IP for the machine then no it won't work, you'll get an error when you try to open the socket.
Gotham Sewani
Greenhorn

Joined: Feb 16, 2007
Posts: 15
Then is there any other way to do it?
Chris Beckey
Ranch Hand

Joined: Jun 09, 2006
Posts: 116

Download a port sniffer (Etheral) and look for "interesting" packets or run everything through a proxy.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: two processes listening to the same port