Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Socket Connection Not Working With Java Desktop Application  RSS feed

Nishu Jain
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----

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.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!