GeeCON Prague 2014*
The moose likes Sockets and Internet Protocols and the fly likes Client window opening in Server Machine..! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Client window opening in Server Machine..!" Watch "Client window opening in Server Machine..!" New topic
Author

Client window opening in Server Machine..!

Dheeraj Pareek
Greenhorn

Joined: Apr 11, 2011
Posts: 1
Hi,
I have made a multithreaded chat application and integrated it in a web application. It's working fine if I run the chat Server and the Web Application clients on the same machine.
but, when I run the server on a separate machine and calls the Chat Client from other machine, the chat window is opening on the Server side, not at the client side.
I' am unable to find the problem, where I have missed something..
Please help..!!
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

Welcome to the Ranch!

Any code you run in the server application will run on the server machine. Any code you run in the client application will run on the client machine. It looks like you're opening the chat window in your server application, but you should open it in your client application. Can you perhaps show us a small bit of code to show if my guess is correct?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
GeeCON Prague 2014
 
subject: Client window opening in Server Machine..!