• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hi some one help

 
nikitha kakani
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic