Set the “Use LAN” flag when creating and searching for a session.
This way you can create a multiplayer game for a LOCAL network. To play via the Internet - you need to either use the Online Subsystem (Steam, EOS, etc. or create your own) that determines how to search for sessions on the Internet, or you need to connect directly via ip:port.