Getting the IP address of the handset | Search |
NowSMS Support Forums ⬆ Now.WAP Proxy Support ⬆ Archive through October 01, 2008 ⬆ |
◄ ► |
Author | Message | |||
Davor Spasoski New member Username: Dspasoski Post Number: 1 Registered: 04-2007 |
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 |
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: |