Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

noob question: sun tutorial, can't get it to work  RSS feed

 
Edmund Castermund
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I was working through the sun tutorial on sockets
here,
and I wasn't able to get it to work.

They said that when I created the socket, I needed to use the fully qualified ip name of the computer I was trying to connect to.

I tried my name, which is the name of the computer when I type "netstat", and I also tried my ip address, I got that by typing "ipconfig" and I also tried the word "localhost" and 127.0.0.1.

I got the IO Exception error when trying to run the program.

I was able to get a server/client to work out of the "headfirst java" book, so I think i'm ok using the sockets, but it's nagging at me that I can't get that Echo thing to work.

Anyone else run into that problem?
thanks,
Jason
 
Santhosh Kumar
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's working fine for me. If you still have issues, you please post the stack trace.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If there are no stupid questions, I hope there are no stupid answers, either. Did you start the server first? that's the kind of thing I'd get wrong.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!