my dog learned polymorphism*
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
Author

hi some one help

nikitha kakani
Greenhorn

Joined: Dec 15, 2007
Posts: 25
Hi,
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
Bartender

Joined: Oct 29, 2001
Posts: 8710
    
    6

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
Marshal

Joined: Jan 10, 2002
Posts: 60058
    
  65

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hi some one help
 
Similar Threads
accessing a server using socket connection
[Help] Sending List<String> via Socket.
a total newbie in Sockets
Serialization issue
Reseting socket after few seconds