This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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

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: 8914

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.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 61299

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Don't get me started about those stupid light bulbs.
subject: hi some one help