01-05-2019, 12:25 PM
Hi there,
Can Xonotic dedicated server run behind a UDP proxy?
TL;DR
I wanna run a dedicated server within a VM and be able to connect from either my local laptop and others computers from the same LAN.
I have a VM running the gameserver within my home LAN. The VM IP is neither exposed to the LAN or public to any other laptop that is part of the same LAN.
My idea is to run a UDP proxy on my laptop that forward requests to the VM IP. It would be something like:
ANY COMPUTER<---------->192.168.0.4(MY LAN IP)<---------->UDP PROXY PORT: 7866(MY COMPUTER)<---------->192.168.64.12:7866(VM)
I managed to get some traffic flowing using socat. However the client does not start the match.
I set the client to use port 7867. The following output comes from the console (dev mode activated)
Client using port 7867
Client opened a socket on address 0.0.0.0:7867
Client opened a socket on address [0:0:0:0:0:0:0:0]:7867
When I click join (192.168.0.4:7866) the output from console is:
Trying to connect...
[::MENUQC::TRACE] CheckCategoryForEntry(./menu/xonotic/serverlist.qc:215)
Found strange mod type: quake
[::MENUQC::TRACE] CheckCategoryForEntry(./menu/xonotic/serverlist.qc:215)
Found strange mod type: quake
Connect: Waiting 10 seconds for reply
[::MENUQC::TRACE] CheckCategoryForEntry(./menu/xonotic/serverlist.qc:215)
Found strange mod type: jeff
[::MENUQC::TRACE] CheckCategoryForEntry(./menu/xonotic/serverlist.qc:215)
Found strange mod type: jeff
Connect: Failed
I am running socat using the following command:
socat -d -d UDP4-RECVFROM:7866,reuseaddr,fork UDP4-SENDTO:192.168.64.12:7866 (the output shows some traffic going on)
Whe I use the VM IP my game client can connect and everything works well. However that IP is not visible to others computers in the same LAN.
Any help is really appreciated.
Can Xonotic dedicated server run behind a UDP proxy?
TL;DR
I wanna run a dedicated server within a VM and be able to connect from either my local laptop and others computers from the same LAN.
I have a VM running the gameserver within my home LAN. The VM IP is neither exposed to the LAN or public to any other laptop that is part of the same LAN.
My idea is to run a UDP proxy on my laptop that forward requests to the VM IP. It would be something like:
ANY COMPUTER<---------->192.168.0.4(MY LAN IP)<---------->UDP PROXY PORT: 7866(MY COMPUTER)<---------->192.168.64.12:7866(VM)
I managed to get some traffic flowing using socat. However the client does not start the match.
I set the client to use port 7867. The following output comes from the console (dev mode activated)
Client using port 7867
Client opened a socket on address 0.0.0.0:7867
Client opened a socket on address [0:0:0:0:0:0:0:0]:7867
When I click join (192.168.0.4:7866) the output from console is:
Trying to connect...
[::MENUQC::TRACE] CheckCategoryForEntry(./menu/xonotic/serverlist.qc:215)
Found strange mod type: quake
[::MENUQC::TRACE] CheckCategoryForEntry(./menu/xonotic/serverlist.qc:215)
Found strange mod type: quake
Connect: Waiting 10 seconds for reply
[::MENUQC::TRACE] CheckCategoryForEntry(./menu/xonotic/serverlist.qc:215)
Found strange mod type: jeff
[::MENUQC::TRACE] CheckCategoryForEntry(./menu/xonotic/serverlist.qc:215)
Found strange mod type: jeff
Connect: Failed
I am running socat using the following command:
socat -d -d UDP4-RECVFROM:7866,reuseaddr,fork UDP4-SENDTO:192.168.64.12:7866 (the output shows some traffic going on)
Whe I use the VM IP my game client can connect and everything works well. However that IP is not visible to others computers in the same LAN.
Any help is really appreciated.