Connect to gameserver on VPS
#9


On 11/1/2021 at 11:11 PM, tijntje96 said:




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.




I was facing the same issue while set-upping a test server on GCP under WIN, it looks like some hosts (e.g: GCP, Azure, along with others ..) handles the routing outside the instance itself...

A way to connect to a test server running on such hosts, would be by forcing the client to ignore the ips of gss (sent by ls), and arbitrarily choose the address to connect to (look for this func ReceiveServerListMessage in SessionState.cpp),

it works(at least it did for me), it should be ok for test servers.

 

this way u should be able to bind gs on internal ip, the internal ip will be sent to the client, client will ignore it and *boom*.

another way would be by forcing ls to send the ext ip of gs(gs binded on internal), but it seems a little tricky and no really point in it imo.

 

 

update: i ran some tests together with /index.php?/profile/2782-tijntje96/&do=hovercard" data-mentionid="2782" href="/index.php?/profile/2782-tijntje96/" rel="">@tijntje96, it seems this solution works on both GCP / Azure (thank you /index.php?/profile/2782-tijntje96/&do=hovercard" data-mentionid="2782" href="/index.php?/profile/2782-tijntje96/" rel="">@tijntje96 for testing it on Azure ?),

should work as well with other hosts.



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: 1 Guest(s)