Getting the IP address of the handset

Getting the IP address of the handset SearchSearch
Author Message
Davor Spasoski
New member
Username: Dspasoski

Post Number: 1
Registered: 04-2007
Posted on Wednesday, April 18, 2007 - 02:38 pm:   

Hi,

I'm evaluating Now Wap and I have a problem with the detection of the IP address of the handset visiting the page. I tried $_SERVER['REMOTE_ADDR'] header but I only get the IP address of Now Wap server. Any ideas?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7126
Registered: 10-2002
Posted on Thursday, April 19, 2007 - 01:53 pm:   

Hi,

Because NowWAP is acting as a proxy, your application server will see the source IP as being that of the proxy. The application server needs to reply back to the proxy which will then relay the response to the client.

If you need to know the source IP of the original client, NowWAP inserts an HTTP header with this information: X-WAP-Client-IP: