Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with sockets example

 
Vladimir Vucetic
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to run example from "Head First Book Java" sockets chapter, but have no luck.
This should be server code project:

This shoud be client code project.

I first run server project and then run client but have no luck.
When I run server project error text is:


What is the problem here?
 
Vladimir Vucetic
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry it from some unknown reason start working. But I am not sure why that error occurred before
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This error is sometimes related to trying to open a port that's already open; it may just be that you already had an instance running.

Glad you got it working, though!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic