Tuesday, July 16, 2019

Linux, create virtual interfaces and connect them to each other

Hello,

I am trying to debug issues in a close sourced game's multiplayer. I am running the game in Wine. I would like to create multiple instances of the game and let them play over "lan". First issue I faced was the game preventing me from running multiple instances of it, which I circumvented by patching a few opcodes.

Running 2 instances of the game is enough for me.

The second issue I am facing now is that the game runs solely over UDP, creating a socket on ANY:3105 for all instances, which of course doesn't allow for proper function of the game's mp.

What I would like to do now is create 2 virtual network cards and connect these to one another. Then have two copies of the game running, each patched to listen on a specific interface only. The patching is something I am familiar with and don't need any advice on, fortunately.

Unfortunately, I have no clue how to create and configure said interfaces.

I have followed along this post, the commands follow through without errors or any feedback, however no interfaces show up for me in ifconfig:

https://unix.stackexchange.com/a/152339

Also, yes, everyone by this point is screaming "Why don't you use a virtual machine?". The game, however hard I try, won't run in it.

Thanks in advance for your time and help!



No comments:

Post a Comment