View Full Version : Get server ip from player
My server has two IP addresses. I want to detect to which of the two ips a player has connected. Is there any direct way to get it or a workaround should be used?
Thanks.
Why/How would your server have two IPs?
Devil259
06-28-2010, 18:25
Maybe he has two servers... Lol.
RedRobster
06-28-2010, 18:27
Maybe he has two servers... Lol.
He says his "server" has 2 IP addresses.
i think:
1. Adress > 11.34.2312:27015
2. Adress > mypage:27015
he wants to know to wich ip the user connected
Maybe he means 2 IP's as in Dynamic/Static who knows...
What do you mean 2 IP's A Redirected IP going to another IP address?
2. Adress > mypage:27015
That is not an IP.
0920357689
06-29-2010, 04:59
if use +ip 0.0.0.0 will use all ip
maybe dynamic and Normal IP ?
I redirect it with iptables. So I have one xx.xx.xx.xx:27015 and yy.yy.yy.yy:27015. Both are addresses of the same server. Hope this is better explained.
I don't think the server will actually know that since all info will still be coming from a single place (your ip table).
Haha, yeah, I figured that out, but the player gets information from the second IP. No way it could be gotten from him?
Haha, yeah, I figured that out, but the player gets information from the second IP. No way it could be gotten from him?
You could have him type it in chat lol.
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.