This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes hi some one help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "hi some one help " Watch "hi some one help " New topic

hi some one help

nikitha kakani

Joined: Dec 15, 2007
Posts: 25
I need to send message hi to server .I am using TCP/IP test server .Can anyone help me out ,whenever i send request the port is closed message is not displayed.

JCE: Please UseCodeTags
Joe Ess

Joined: Oct 29, 2001
Posts: 9191

Is your server expecting text or a Java String object? Using an Object Output Stream will serialize a Java String Object.
You should probably take a few moments and run through the Java Socket Tutorial and the Java IO Tutorial. A solid base in those two features is essential for working with sockets.

[How To Ask Questions On JavaRanch]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873

Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

A title such as "hi some one help" is not helpful. What would happen if all posts had such a title?

Please go back and change your post to add a more meaningful subject by clicking the button on your post.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: hi some one help
It's not a secret anymore!