Java Sockets Tutorial

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
23,984
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 5, 2009

A straightforward screencast showing how two processes on different machines can communicate together over the network using Java Sockets. The tutorial assumes the viewer has a working knowledge of the Eclipse IDE. Links to the source code are available on my website: http:/themobilemontage.com/teaching/screencast-tutorials/

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 4 dislikes

Link to this comment:

Share to:

Uploader Comments (batwingd)

  • My volume is maxed and its hard to hear.... :(

    Looks like a good tutorial...

  • @RebelHQ Hmm, if you're on Windows maybe check your master volume setting? I can hear the audio fine.

  • Hi, you set up the client program to have the same IP address as the server.

    The problem is i dont know how to do that because I'm using Neatbeans 6.8.

    Can you help me?? thanx^^

  • @leehyuk57 Actually, the client program expects you to provide the server address as a command line parameter, and it defaults to "localhost" if you do not provide on. This is independent of which Java IDE you are using.

Top Comments

  • Thanks alot for the tutorial =)

    The volume was quite low tho, was a little hard to hear you.

see all

All Comments (25)

Sign In or Sign Up now to post a comment!
  • great tutorial, thanks

  • 1:06 OW

  • Very good tutorial. Thanks!

  • I m not able to clearly hear u ----->>low volme

  • Nice "Simple". i was having a hard time configuring the sockets correctly and had a a little of a hard time understand how Java Sockets are programmed. I know how to set up a Perl Socket but now i Know how to do BOTH(Java & Perl). I just needed a Oral presentation on how to do it. Thinks but i agree the Sound is a bit low. I wore headphone and held them to my ears for so i can hear!!

  • Assuming your server program can handle multiple clients, what is the maximum number of clients the server can handle?

    Also, can the server use single port (9999) for all the client connections? Doesn't it have to assign new port for each new connection?

    thanks.

  • thats great very informative . thnx! but lets say, taht the client wants to parse a variable , then the server would want to do some operations with that varable and return soem results. how can i transfer a parameter or varieable . , thnx in advance ! :P keep up the good work

  • If I send someone the client half and they run it with my IP address as the first argument and the port as the second, and I have the server part running on my computer should it work? It works fine when I run both the server and client on my PC but my friend said that cmd just closed.

  • If I send someone the client half and they run it with my IP address as the first argument and the port as the second, and I have the server part running on my computer should it work? It works fine when I run both the server and client on my PC but my friend said that cmd just closed.

  • This is amazing, thank you so much.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more