File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes Socket Connection Not Working With Java Desktop Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Socket Connection Not Working With Java Desktop Application" Watch "Socket Connection Not Working With Java Desktop Application" New topic
Author

Socket Connection Not Working With Java Desktop Application

Nishu Jain
Greenhorn

Joined: Feb 09, 2012
Posts: 2
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Socket Connection Not Working With Java Desktop Application
 
Similar Threads
problem with Servlet Filter in Portal environment
Client Applet- server application
Testing Socket code
Question about ServerSocket port number and Socket port number
What's wrong here!