Raised This Month: $ Target: $400
 0% 

Get server ip from player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rumbeto
Member
Join Date: Feb 2007
Old 06-28-2010 , 16:45   Get server ip from player
Reply With Quote #1

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.
rumbeto is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-28-2010 , 18:21   Re: Get server ip from player
Reply With Quote #2

Why/How would your server have two IPs?
__________________
fysiks is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 06-28-2010 , 18:25   Re: Get server ip from player
Reply With Quote #3

Maybe he has two servers... Lol.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 06-28-2010 , 18:27   Re: Get server ip from player
Reply With Quote #4

Quote:
Originally Posted by Devil259 View Post
Maybe he has two servers... Lol.
He says his "server" has 2 IP addresses.
RedRobster is offline
infek
Senior Member
Join Date: May 2009
Location: Behind you
Old 06-28-2010 , 20:59   Re: Get server ip from player
Reply With Quote #5

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?
__________________
"Domo Arigato, Mr. Roboto!"
PM me if you want to know a secret
infek is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 06-28-2010 , 20:59   Re: Get server ip from player
Reply With Quote #6

i think:

1. Adress > 11.34.2312:27015

2. Adress > mypage:27015

he wants to know to wich ip the user connected
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-28-2010 , 21:05   Re: Get server ip from player
Reply With Quote #7

Quote:
Originally Posted by mottzi View Post
2. Adress > mypage:27015
That is not an IP.
__________________
fysiks is offline
0920357689
Senior Member
Join Date: Apr 2008
Old 06-29-2010 , 04:59   Re: Get server ip from player
Reply With Quote #8

if use +ip 0.0.0.0 will use all ip
0920357689 is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 06-29-2010 , 07:16   Re: Get server ip from player
Reply With Quote #9

maybe dynamic and Normal IP ?
Vechta is offline
rumbeto
Member
Join Date: Feb 2007
Old 06-29-2010 , 07:40   Re: Get server ip from player
Reply With Quote #10

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.
rumbeto is offline
Reply


Thread Tools
Display Modes

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 14:49.


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