Search Unity

Question How can I locate lan servers using unity NetCode/transport

Discussion in 'Multiplayer' started by bobbaluba, Oct 15, 2020.

  1. bobbaluba

    bobbaluba

    Joined:
    Feb 27, 2013
    Posts:
    81
  2. jackywaiholeung

    jackywaiholeung

    Joined:
    Oct 16, 2020
    Posts:
    4
    I'm new to netcode and unity but I've done this with udp; server listens asynchronously whilst the client broadcasts messages, server will send a response and both sides will be able to get the IP and port.
    Have a look at the UdpClient class. It's a bit involved at first but it isn't too complicated.