Connect to gameserver on VPS
#1

First of all, thank you for reading this! I'm aware this question is probably asked a lot before but I just can't seem to figure out how to resolve it.

 

Me and a friend are trying to figure out how to setup a server as a hobby project, we've always played LC when young and this seemed like a fun project for the weekends. We were off with a good start, source files did compile, on the same network everything works flawlessly but when we tried to set it up on a VPS it became a bit more complicated.

We've got the following setup:


Windows server files (2) Haven't changed anything about the files yet.


Windows Server 2022 on Azure (happen to have some Azure credit laying around)


Windows Firewall disabled


Azure Firewall allow all ports inbound (canyouseemee.org can see both the loginserver port and the gameserver port)


Internal NIC IP: 10.0.0.4


Public NIC IP: 20.105.[CeNsOrEd].[CeNsOrEd]


All the servers are set to 127.0.0.1 except for the loginserver and the gameserver. Those are set to the internal IP op de NIC


Within the same network everything works fine, but over the internet (or introducing NAT) it doesn't work anymore.

My gameserver does not want to bind to the Public IP, there i've set it to the Internal IP, however this is also the IP it sends to the client to connect on. And obviously 10.0.0.4 cannot be resolved over the internet. 

 

Now i'm not completely sure what to resolve, I think i've got multiple options but would like to know what is the route i'm supposed to take:


I might be able to modify the connector/gameserver to send a fixed IP to my client. Then I can leave the gameserver binding to the Internal IP and still get my client to connect on the Public IP. However since my gameserver is not listening on that IP adres i'm not sure wether it will connect or not.


If I could configure the network adapter within windows to use the Public IP then it might be able to bind (however this does not seem possible within Azure, maybe another VPS host is more suited therefore?)


I might be able to modify the client to use a fixed IP to connect to the gameserver, however then i'm afraid of the same problem as my first bullet


I might need to resolve the issue of the gameserver not able to bind on the public IP behind NAT?


 

I don't expect a answer like add this line of code here and it'll work, but i'd love to be pointed in the right direction because with alot of variables its hard to troubleshoot. I'm sure somebody has figured this out already!

Thanks alot in advance!

 

 



Messages In This Thread
[No subject] - by tijntje96 - 11-01-2021, 10:11 PM
[No subject] - by Sickness - 11-02-2021, 02:29 AM
[No subject] - by tijntje96 - 11-02-2021, 06:54 AM
[No subject] - by Sickness - 11-02-2021, 07:25 AM
[No subject] - by tijntje96 - 11-02-2021, 07:29 AM
[No subject] - by Desarija - 11-02-2021, 08:41 AM
[No subject] - by Veni - 11-02-2021, 09:45 AM
[No subject] - by tijntje96 - 11-02-2021, 09:58 AM
[No subject] - by merl0@ - 11-07-2021, 02:23 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)