I am a solo game developer and I know a lot about Godot. But when it comes to multiplayer, I don’t know literally anything about it. So I wanted to learn how to make a multiplayer game and found a tutorial for multiplayer fps games. The game I want to make is also a FPS game, which is perfect. Here is the tutorial:
After watching it, in the UPNP part, I wrote the exact same code and get error: “Assertion failed: UPNP Invalid Gateway!”
Then I searched simply what is UPNP and got results like “Why should you disable UPNP right know!” or “Why UPNP is not safe?”. As I said I really just know that peer-to-peer system connects more than 1 computers together. Moreover I didn’t find any solutions for the error.
Do I have to use UPNP for peer-to-peer system? Or is opening UPNP(whatever it is I don’t know) safe?
for a local peer-to-peer system you wont need UPNP, since theres no port forwarding required. If you want to connect to PC outside of your own network you have to either use a server or port-forwarding. UPNP is a way to use port-forwarding (if your router allows it). There are some security concerns about UPNP and its best to read up on it yourself if you want to use it
Is there another way for the local peer-to-peer system? Because many websites say it is not safe. Also, it doesn’t work. I searched for other ways but couldn’t find anything.
Your router might block UPNP. You have to google your router and see if it is possible on your router and turn it on if its turned off. As i said local peer-to-peer requires nothing. You can just use the built in networking methods like ENetMultiplayer