• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServerSocket problem

 
fedai gandjaliyev
Ranch Hand
Posts: 99
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic