AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get server ip from player (https://forums.alliedmods.net/showthread.php?t=130885)

rumbeto 06-28-2010 16:45

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.

fysiks 06-28-2010 18:21

Re: Get server ip from player
 
Why/How would your server have two IPs?

Devil259 06-28-2010 18:25

Re: Get server ip from player
 
Maybe he has two servers... Lol.

RedRobster 06-28-2010 18:27

Re: Get server ip from player
 
Quote:

Originally Posted by Devil259 (Post 1222988)
Maybe he has two servers... Lol.

He says his "server" has 2 IP addresses.

mottzi 06-28-2010 20:59

Re: Get server ip from player
 
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

Re: Get server ip from player
 
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

Re: Get server ip from player
 
Quote:

Originally Posted by mottzi (Post 1223133)
2. Adress > mypage:27015

That is not an IP.

0920357689 06-29-2010 04:59

Re: Get server ip from player
 
if use +ip 0.0.0.0 will use all ip

Vechta 06-29-2010 07:16

Re: Get server ip from player
 
maybe dynamic and Normal IP ?

rumbeto 06-29-2010 07:40

Re: Get server ip from player
 
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.


All times are GMT -4. The time now is 14:49.

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