"Server" to play with a friend?

Is it possible for me and a friend to play in a same game but not a public server? Like using hamachi to sort of make a local game thing.
Btw, we both have legit Garry’s Mod’s

If you’re both on the same lan create a listen server and type sv_lan 1 in console.

We’re not

Put a password on the server?

b=Best solution I can think of.

Oh crap, and free lol

Create a listen server then.

Forward your ports, then create a listen server with the ‘create multiplayer’ button and password it.

Just trying to avoid another help thread.