Thank you Stipe,

Yes, that's the header, however it only gives the IP address of the
firewall, as it is masquerading the private IP addresses of the handset.
I was told by the operator that they include the "IP address in the cookie
headers appended by Ericsson MIEP (some proxy) to any cookie of the HTTP
server". Don't know what this means, but here's an example they gave me:

 cookie:

$Version=0;User-Identity-Forward-msisdn=333036393734333533353634;

User-Identity-Forward-userid=3734333533353634;

User-Identity-Authentication=Bearer;

ip-address=10.10.10.132;

Bearer-Type=w-TCP;

wtls-security-level=none;

network-access-type=CSD;

nas-ip-address=192.168.254.1;

Called-station-id=35303030303030;

accounting-session-id=00514BFB


Davor Spasoski


-----Original Message-----
From: Stipe Tolj [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 19, 2007 2:09 PM
To: Davor Spasoski
Cc: [email protected]
Subject: Re: Getting real IP address of the handset

-----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

- -------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany

tolj.org system architecture      Kannel Software Foundation (KSF)
http://www.tolj.org/              http://www.kannel.org/

mailto:st_{at}_tolj.org           mailto:stolj_{at}_kannel.org
- -------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGJ1vy9ez0oeKvYs0RAgelAJ0UGdb/+wHegrejlEaxKYHl1D3oEACfW13a
jDeSNRUVTXAG3dhhvVzH6Es=
=1sNq
-----END PGP SIGNATURE-----


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