Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Socket Java outputStream

 
Pauline Chevalier
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,
I am a beginner in using socket. I want to connect and send commmand to a module. I have it's ip adress and the port on which it is waiting for commands. Assume that String cmd is the command I want to send to the module.



But the module doesn't receive any command. Can someone help me to understand why?

ps: sorry for my english , I am french
 
Don Ho
Greenhorn
Posts: 9
Android
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly is "a module"? Do you have code for that, too? Have you tested it running on the same machine with localhost as ip address?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic