Hi Juan,

Thank you for your proposal. I tried it, but the firewall is doing
masquerading and I can't get the real IP address.
I was told that a proxy server called MIAP is appending some cookie headers
to any cookie of the HTTP server. The ip address is contained there. I don't
really know what they exactly mean by this and what mechanism to build to
acquire the cookie headers.

Thanks for helping

Davor Spasoski
VAS Engineering Group Leader
Cosmofon


-----Original Message-----
From: Juan Nin [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 19, 2007 4:09 PM
To: Stipe Tolj
Cc: Davor Spasoski; users@kannel.org
Subject: Re: Getting real IP address of the handset

Stipe Tolj wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Davor,
>
> Davor Spasoski wrote:
>
>
>> I started testing the WAP gateway. My problem is that I cannot get the IP
>> address of the mobile handset by invoking any of the following http
headers:
>>
>> $_SERVER["HTTP_CLIENT_IP"]
>>
>> $_SERVER["REMOTE_ADDR"];
>>
>
> ok, these are obviously PHP code segments you use here ;)
>
>
>> I always get back the IP address of the machine where the Kannel is
running.
>> Is there any setting on kannel to solve this problem?
>>
>
> as you try to get the client IP of the mobile that is accessing your HTTP
> server, you will see for REMOTE_ADDR of course the IP of the machine
running
> Kannel.
>
> What you need is to look for a specific HTTP header that is used by Kannel
to
> proxy the mobile client IP to the application layer.
>
> This is HTTP header: X-WAP-Network-Client-IP
>
> I don't recall it now, otherwise I would tell, but you simply need to
figure out
> in PHP how to obtain the HTTP header with the above name while the
requests is
> processed, then you get the client IP.
>
> Stipe
>
> -
then it should appear in $_SERVER['X-WAP-NETWORK-CLIENT-IP']

if not you can use print_r($_SERVER) to see all headers  :)

Regards,

Juan


COSMOFON - Mobile Telecommunications Services - A.D. Skopje
_______________________________________________________________
This  e-mail  (including   any   attachments) is   confidential and  may  be 
protected  by  legal  privilege.  If  you are not the intended recipient, you 
should not copy it, re-transmit it, use  it  or  disclose its contents, but 
should return it to the sender  immediately  and delete  your  copy from your 
system. Any unauthorized  use or dissemination of this message in whole or in 
part is strictly prohibited. Please note that e-mails are susceptible  to 
change. COSMOFON A.D. Skopje shall not be liable  for  the improper or  
incomplete transmission of the information contained in this communication nor 
for any delay in its receipt or damage to your system.


Reply via email to