If you’re on the same WiFi/local network, you can use your local IP (like 192.168.1.101) to connect (but still make sure that the game is allowed in Windows Firewall).
If you’re not, you’ll either have to port forward (look for instructions for your router) or use a VPN service like ZeroTier, Radmin VPN, Hamachi, etc.