Netcode for gameobjects and unity relay services.
Netcode allows you to connect locally and handles all the multiplayer stuff in a local network and relay allows you to connect to other people without exposing ports or smthn.
Heres the tutorials:
Netcode -
Relay -