Tuesday 15 September 2015

java - How to have a Server Socket broadcast that it's there, and have a client socket detect it and connect -



java - How to have a Server Socket broadcast that it's there, and have a client socket detect it and connect -

i think we've played minecraft before, , know can have local server detection. lot of games it, 1 player hosts game, , can connect because it's on same network. i'm wondering, how code in java? how server on minecraft broadcast network, , how client find , connect it? if wrong place set this, i'm sorry didn't know, sense might be.

how have socket broadcast it's there , connectable, , have socket find , connect it, same way lan game works?

@pulsepanda, logic can implemented using multicasting. using protocol can broadcast message machines in lan. illustration of implementation ipmsg. can find more info multicast here. jdk 7 comes built-in multicast socket. can find detailed illustration @ next location.

java sockets broadcast lan

No comments:

Post a Comment