Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am trying to learn Socket programming in Java to make a game I created playable via network. I have never done much network programming so the subject is a bit confusing. In php I use apache to test my aplications on a local server. What do I need to install to be able to run network applications with Java?

share|improve this question

closed as not constructive by gnat, Kilian Foth, Dynamic, ChrisF May 25 '13 at 15:35

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 9 down vote accepted

You don't need to install anything special. Socket has been in the standard JDK since version 1.0.

See socket tutorial to get started.

If you want to test how the communication works between processes, then simply start >1 processes in the same machine. In principle it works similarly over any network.

share|improve this answer
1  
For an instant copy-paste-go code example this one is OK –  Gary Rowe May 23 '12 at 8:53

Not the answer you're looking for? Browse other questions tagged or ask your own question.