Skip to main content
GameDev.net gamedev.net
🔒 Locked

[java] java network question

Started by tordyvel Dec 2, 2002 at 3:29 AM 0 replies 200+ views
Original Post
tordyvel
tordyvel
I would like to make some sort of game that directly connects to a local game if there is any or else creates one without having to type some IP-adress or anything. What is this kind of networking called? Are there any (easy) tutorials on it? I have never programmed any network stuff before. Thanks!
Petr Stedry
Petr Stedry
Hi,

you should either store the server IP address in some config file, or use a multicast socket (see the javadoc for java.net.MulticastSocket, there''s a nice code snippet there).

have a nice day...

Petr Stedry
Petr Stedry

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.