Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Feature Request netcode Network Discovery

Discussion in 'Netcode for GameObjects' started by liambilly, Mar 4, 2023.

  1. liambilly

    liambilly

    Joined:
    May 13, 2022
    Posts:
    45
    Last edited: Mar 5, 2023
  2. Baroni

    Baroni

    Joined:
    Aug 20, 2010
    Posts:
    2,961
    I rewrote the NetworkDiscovery component shipped with UNET in the past and it worked with the UnetTransport for some time. However since Netcode 1.1.0 and using UnityTransport, basic broadcasting support seems to be broken even with all firewalls disabled. With the working, previous code, neither sending nor processing incoming broadcast messages could be done, after hours trying to work something out.

    So, I just assume that the underlying technique of the NetworkDiscovery component is faulty. That's why I have thrown the old implementation away and rewrote it using the UdpClient .NET class and .send, which does work e.g. with one PC connected via LAN and a Macbook connected via WiFi on the same router (still requires disabling firewalls). It did that in my asset Tanks Multiplayer.
    http://forum.unity3d.com/threads/410465/
     
  3. RikuTheFuffs-U

    RikuTheFuffs-U

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    302
    Could you please open a feature request here? In this way, the team behind Netcode For GameObject will be able to prioritize your features, and you'll be automatically updated about their status
     
  4. liambilly

    liambilly

    Joined:
    May 13, 2022
    Posts:
    45
    yeah i tried it, the buttons appear but on pressing them it doesnt discover host on client or cllient on host