PDA

View Full Version : Get server ip from player


rumbeto
06-28-2010, 16:45
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.

fysiks
06-28-2010, 18:21
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.

mottzi
06-28-2010, 20:59
i think:

1. Adress > 11.34.2312:27015

2. Adress > mypage:27015

he wants to know to wich ip the user connected

infek
06-28-2010, 20:59
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?

fysiks
06-28-2010, 21:05
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

Vechta
06-29-2010, 07:16
maybe dynamic and Normal IP ?

rumbeto
06-29-2010, 07:40
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.

fysiks
06-29-2010, 17:48
I don't think the server will actually know that since all info will still be coming from a single place (your ip table).

rumbeto
06-30-2010, 03:22
Haha, yeah, I figured that out, but the player gets information from the second IP. No way it could be gotten from him?

fysiks
06-30-2010, 16:14
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.