• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Socket Connection Not Working With Java Desktop Application

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic