aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes ServerSocket problem 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 "ServerSocket problem" Watch "ServerSocket problem" New topic
Author

ServerSocket problem

fedai gandjaliyev
Ranch Hand

Joined: Dec 05, 2005
Posts: 99
Hi!
I write a class which listens to connections with ServerSocket.
When using an IDE (say IntelliJ IDEA) the ServerSocket works because
I launch the process of the class.
When terminating the process and putting the class file somewhere
on a remote machine the Exception says that the socke is closed.
When placing on a remote machine how can I make the class file (
with ServerSocket) listen to incoming connections?

Thank you!
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8867
    
    8

Stupid question: Are you running the class on the remote server?
Are you changing the IP address in the client of the server it is trying to reach from your local machine to the remote machine?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ServerSocket problem