Finding computers on LAN

Discussion in 'Java' started by Brian Odsgaard, Oct 29, 2008.

  1. Hi all

    I'm going to build a simple multiplayer game.

    The task is to create a game that runs on multiple computers on a LAN.

    I want to create a solution that don't need a server running on a specific
    computer with a specific IP - all computers should be able to initiate a
    game and act as server.

    How can I make an application search the LAN to find if any connected
    computers is running as server - without knowing the IP on the other

    - Brian
    Brian Odsgaard, Oct 29, 2008
    1. Advertisements

  2. Brian Odsgaard

    Arne Vajhøj Guest

    One idea: and UDP broadcast

    Arne Vajhøj, Oct 29, 2008
    1. Advertisements

  3. John B. Matthews, Oct 29, 2008
  4. Brian Odsgaard

    Roedy Green Guest

    I think you will need to learn to solve the problem for your
    particular OS in C++ and write some JNI.
    Roedy Green, Oct 29, 2008
  5. Thank you for expanding on this. I was thinking of the DNS based Service
    Discovery capability:

    Bonjour (a zeroconf implementation) uses multicast on UDP port 5353. I
    use it to find local print- and vnc-servers:


    I'm told it can find games:

    Thank goodness!
    John B. Matthews, Oct 29, 2008
  6. Brian Odsgaard

    Arne Vajhøj Guest

    Why ?

    Other posters have already posted Java solutions.

    Arne Vajhøj, Oct 29, 2008
  7. Hi again ...

    Thanks for all the suggestions - I'll have a look into them and hope to find
    what I'm looking for :)

    - Brian
    Brian Odsgaard, Oct 30, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.