Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Socket Connection Not Working With Java Desktop Application

 
Nishu Jain
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I had created a console application in which i was trying to create a socket connection with the server using

[b]Java Class ServerConnect----
[/b]

The console java application properly created the socket connection but.

When i tried to do the same thing through the Desktop application i.e giving call to the function of ServerConnect class for Socket Connection it does not work.
When i tried to debug the Desktop Application the controls hangs at line

Socket socket = new Socket(hostIpAddress,32); and does not moves further, not even giving any exception.

Can anybody suggest what might be the problem/error.

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic