File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes Socket Java outputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Socket Java outputStream" Watch "Socket Java outputStream" New topic

Socket Java outputStream

Pauline Chevalier

Joined: Mar 06, 2012
Posts: 7
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

Joined: Mar 07, 2012
Posts: 9

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?
I agree. Here's the link:
subject: Socket Java outputStream
Similar Threads
connection refused
hi some one help
Help Debugging my TCP client server program to solve the producer consumer problem
Connection Refused Error
sockets: How to receive server response in client