• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to establish communication

 
Ravii Bhai
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I have One hardware device (HID controller). to which I have to establish communication. As per its document we have to
listen on port no. 4070 at our server program. and the controller whose address is 192.168.0.103 will listen on port number
4050.

I want to know that how I can meet this requirement. that listening at one port number and sending data at another port number.
please tell me what to do.
Connection is Tcp/ip



Regards,
Ravi Rao
 
Ryan Beckett
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming that your using the ServerSock class. Why don't you create two?
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Server sockets are for listening. It sounds like Ravii's application will listen on port 4070, but will send data on port 4050. So one ServerSocket and one Socket should do the trick.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!