With D:OS1&2, each platform version uses that platform's multiplayer API, and on PC there is Direct Connection and LAN for Steam / GOG / App Store multiplayer.
For BG3 there should be details about multiplayer announced closer to EA/release.