I really need help with this multiplayer issue.

Hello. I have made a game but I do not want to publish it for reasons. How would I make this online multiplayer and play this with just my friends? In another word, how can I share my games with my friends without publishing it?

I’m sure you can just build the game, hook it up to your Unity account and then just share the build or even the project for him to open in Unity.

You need to host your server somewhere like AWS on an EC2 instance.

If you’re new to network programming I would advise you try Photon (PUN). It’s relatively simple, and the hosting is done for you for free up to 20 concurrent users.

Go ahead and learn about multiplayer first they will most probably teach you about testing the game with your friends