×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    21

    Determine remote client's IP address

    hello,
    is it somehow possible to determine remote client's IP address???
    or is this because of the connectivity solution of MWS (gateway, ...) just not possible?

    THX for help!
    regards,
    Askin

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: Determine remote client's IP address

    The connections come through the gateway, and the gateway is probably passing its own IP address in the requests to your phone running MWS.

    In any case, even the gateway most probably is not receiving the client's actual IP address, but the IP address of the last proxy/gateway the client comes through. Most network operators assign IP private IP addresses to the phones, and then it is the operator's proxy/gateway address that is sent for every phone (i.e., all phones will look like they had the same IP address).

  3. #3
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    457

    Re: Determine remote client's IP address

    Actually, the IP-address the web-server will see, when the request comes via the gataway, is 127.0.0.1, because the request is delivered by the component on the phone that talks with the gateway.

    In the original proto implementation our gateway passed the client (well, the one it saw) IP-address in a custom HTTP header field. Check what HTTP header fields are provided to your request handler; perhaps this survived into the productization as well.

    Johan

  4. #4
    Registered User
    Join Date
    Feb 2008
    Posts
    21

    Re: Determine remote client's IP address

    Quote Originally Posted by jhnwkmn View Post
    In the original proto implementation our gateway passed the client (well, the one it saw) IP-address in a custom HTTP header field. Check what HTTP header fields are provided to your request handler; perhaps this survived into the productization as well.
    doesn´t look like that

    req.headers_in just provides following fields:
    Host
    User-Agent
    Accept
    Accept-Language
    Accept-Encoding
    Accept-Charset
    Referer
    Cookie
    Cache-Control
    Connection

    unfortunately nothing where client´s IP address can be found.
    Host "points" to the gateway!

    anyway..thx for answer!
    Askin

  5. #5
    Registered User
    Join Date
    May 2008
    Posts
    1

    Re: Determine remote client's IP address

    This discussion is very much helpful to me. Thanks

    Software testing tutorial

Similar Threads

  1. IP address of the remote host and connection initiating app info
    By Melsin in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2007-05-09, 15:17
  2. How do I determine the IP address of my phone?
    By tote in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2006-09-15, 09:49
  3. Binding to Remote IP address Fails with -1
    By girish_1978 in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-08-08, 20:36
  4. Binding to Remote IP address Fails with -1
    By girish_1978 in forum Symbian C++
    Replies: 0
    Last Post: 2006-08-04, 20:29
  5. Help! Help! My IP address is changing like crazy !!
    By jwynn_in_nh in forum Mobile Java General
    Replies: 0
    Last Post: 2003-07-22, 22:10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •