(05-14-2016, 06:10 AM)The Lone Wolf Wrote: We tryed with Hamachi only and it didn't work. After that we Tryed Multiserver only, and wont work too. After that i got a Message in the IRC from Stm with the LF2-Lobby and that Works fine. :/
At least i dont have any Problems with Connect, but my Friend have. I think about, the Reason would be his Firewall...
(And sry for mah English :3)
That's the old issue about port forwarding. I would like to write a decent article about this someday...
Anyway, in a game between only 2 computers, you don't need any kind of server.
One person clicks "Waiting for opponent" (this person will be the server), and the other person clicks "Connect to opponent" (this person will be the client) and types the IP from the server computer.
However, when you click "Waiting for opponent" a message will pop up asking if you want to allow LF2 to connect to the network. You should click "Yes", otherwise it won't work (because of the firewall). If you clicked "No" by mistake, the pop up window will not appear again, in this case you must go to the Firewall settings in your computer and search for the LF2 app in the list, then tick the checkbox to allow the app.
But this is not the only problem. The person who connects "Waiting for opponent" is usually behind a router, and the person who clicks "Connect to opponent" is usually not behind the same router (i.e. both computers are not in the same place/house). This means that the person who clicks "Waiting for opponent" must port forward their router to TCP port 12345 (the one LF2 uses) and provide their public IP to the person who wishes to connect to them.
To circumvent this, both players must use a VPN server (e.g. hamachi), and the player who clicks "Connect to opponent" must use the hamachi IP of the other person to connect.
LF2 MultiServer is useful for when you want more than 2 computers connected. In this case only 1 person needs to open the server (and proceed the same way as who clicks "Waiting for opponent" in the 1vs1 scenario), while the others connect to him (including himself connecting to 127.0.0.1). Also everyone must have ddraw.dll in their LF2 folder and set controls to Player 1.