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

Reply via email to