Raised This Month: $ Target: $400
 0% 

[ANY] Server Redirect - A full featured server listing/hoper (v0.2.6, 24/01/2016)


Post New Thread Reply   
 
Thread Tools Display Modes
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 03-14-2015 , 18:48   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #141

Plugin will do it automatically if redirect_register_server is 1 (default)
h3bus is offline
gorgitko
Member
Join Date: Feb 2015
Old 03-14-2015 , 19:39   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #142

Quote:
Originally Posted by h3bus View Post
Plugin will do it automatically if redirect_register_server is 1 (default)
But how does server find out IP adresses of other servers?
gorgitko is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 03-14-2015 , 19:40   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #143

Each server registers itself on a shared database.
Then, server query that database to get others Ips
h3bus is offline
gorgitko
Member
Join Date: Feb 2015
Old 03-14-2015 , 20:01   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #144

Thanks h3bus! Of course Servers info is shared between servers which uses this plugin and the same DB.

Unfortunately I have another problem: the IP adresses of servers are local IP's. So for example 10.20.30.100:27015 is showed instead of 84.245.95.238:27015

Is there any solution?

Last edited by gorgitko; 03-14-2015 at 20:02.
gorgitko is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 03-15-2015 , 04:27   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #145

Yes,

go into cfg/redirect/*.cfg and set redirect_register_server to 0.
Then in database modify the sever IP to its external one.

However could you give me the content of your hostip, net_public_adr and ip cvars? Maybe I can fix this in next release!

Last edited by h3bus; 03-15-2015 at 04:32.
h3bus is offline
gorgitko
Member
Join Date: Feb 2015
Old 03-15-2015 , 05:15   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #146

"ip" = "10.20.30.100"
"net_public_adr" = ""
"hostip" = "169090660"

Is it possible that because the "net_public_adr" is not filled the servers cannot be reached from LAN using public IP?
To imagine our situation we have two dedicated servers in the same LAN running on Linux. If I set their public IP's they cannot connect each other (I mean with your plugin). Local IP's work fine.

Last edited by gorgitko; 03-15-2015 at 05:15.
gorgitko is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 03-15-2015 , 05:49   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #147

Thanks for the ifo, ip holds your external IP!

Your problem is more a routing issue.

Normaly local network should be able to address itself through public IPs.
Maybe your router does not allow that, or this messes up the NAS, Or you made an error when modifying the database (ie: wrong port, I don't know)
h3bus is offline
gorgitko
Member
Join Date: Feb 2015
Old 03-15-2015 , 12:40   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #148

It's probably problem of router, I will try to figure it out.
gorgitko is offline
jonitaikaponi
Senior Member
Join Date: Nov 2014
Location: Finland
Old 03-16-2015 , 14:15   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #149

Quote:
Originally Posted by h3bus View Post
Yes,

go into cfg/redirect/*.cfg and set redirect_register_server to 0.
Then in database modify the sever IP to its external one.

However could you give me the content of your hostip, net_public_adr and ip cvars? Maybe I can fix this in next release!
Hey, Im having the same problem as gorgitko, but doing the trick that you explained doesn't seem to work. Even if I set redirect_register_server to 0, the server gets added to the database again with the internal IP after I have modified the old fields.
I also checked in game that redirect_register_server is infact set to 0.

Got any other suggestions?

Last edited by jonitaikaponi; 03-16-2015 at 14:16.
jonitaikaponi is offline
gorgitko
Member
Join Date: Feb 2015
Old 03-16-2015 , 16:31   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #150

h3bus: I suggest adding ConVar to you plugin, which defines which cvar with server adress will be used (ip or net_public_adr) -- as you said that you will fix that in the next release.

EDIT: The best will be possibility to choose which adress will be used for server query and which for client's connection. That will be very useful if somebody has servers in the same LAN (like me or jonitaikaponi).

Last edited by gorgitko; 03-16-2015 at 16:44.
gorgitko is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode