This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile 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