×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    42

    HowTo detect If WiFi-phone is surfing WebSite??

    Hi,

    I have this question for Wifi-enabled Mobile phone like Nokia NSeries.

    How you can use server-side code to detect the mobile phone is Surfing website in Wifi on server-Side?? This means that on the server-side I have Asp.net or JSP or PHP Web application , but how to write a code to detect that Wifi-phone User are surfing my WebSite in WiFi. This way, I will not worry to provide content-rich webPage to the mobile user.

    Any1 can help?

    Thanks and wish all a Happy New Year.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: HowTo detect If WiFi-phone is surfing WebSite??

    There is no way to know whether a phone is connecting through a cellular network or a local (to where the phone is) Wi-Fi network.

    All you can do is to use the HTTP_USER-AGENT header to determine what device it is.

  3. #3
    Registered User
    Join Date
    Nov 2005
    Posts
    42

    Re: HowTo detect If WiFi-phone is surfing WebSite??

    hi,

    Is there a possibility to detect the WAP Server version in User-agent? If there is WAP server info, this means the connection is via GPRS or 3G wireless network.

    can help ?

  4. #4
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: HowTo detect If WiFi-phone is surfing WebSite??

    This would not still solve your issue, as there are situations when there is no WAP proxy between the phone and the web server, and the connection is still cellular connection.

    In other words, if you find WAP specific headers from the request, then yes, the connection is through cell network.
    If you do not find WAP headers from the request, the connection is either through cellular networ or through WiFi.

    Hartti

  5. #5
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: HowTo detect If WiFi-phone is surfing WebSite??

    Quote Originally Posted by hartti
    If you do not find WAP headers from the request, the connection is either through cellular networ or through WiFi.
    Or through USB cable and IP passthrough and a PC and however the PC is connecting to the net (if it is Communicator or Eseries phone).

    Or through Bluetooth and through a PC if gnubox is used (and again via whatever Internet connection the PC is using).

    And if they're surfing through an anonymizer server/proxy.

    Granted, probably not many browsing the net using the phone like this, but still... The main point is: a web server has no way of knowing for sure what kind of a device is really connecting to it (the device/browser can lie in the user-agent header and otherwise, even), and what kind of a connection to the net it has.

  6. #6
    Registered User
    Join Date
    Nov 2005
    Posts
    42

    Re: HowTo detect If WiFi-phone is surfing WebSite??

    Hi both,

    Look at this way :

    1)Mobilephone----->3G/Gprs--->WapGateway---->ISPGateway

    2)MobilePhone----------------->AccessPoint(Wifi)-->IspGateway

    3)MobilePhone---->BlueTooth/Etc-->PC------------->IspGateway

    MObilePhone--------------------------------->ISpGateWay <--Can not be!


    2 and 3 never go thru WAP Gateway......!

    Can help to detect the WAP Gateway Version?

    Thanks

  7. #7
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: HowTo detect If WiFi-phone is surfing WebSite??

    WAP proxy can add some headers or then it does not add any headers to the request. Also cellular connections can go to the server without any WAP proxy in between. So you cannot reliably find out from server side if the phone is connecting through cellular connection or through WiFi.

    I think that is pretty clearly stated above.

    Hartti

  8. #8
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: HowTo detect If WiFi-phone is surfing WebSite??

    Simplest way to solve the problem is to have a link on every "rich" page to a "small" or "mobile" version of the site and vice versa.

    Then every user can choose which one they want to use and when and you don't have worry about detecting how they happen to be connected and make the decision for them (and possibly against their will).

    Or you can go with a site-design and stylesheets that work on most any device as-is (drop fancy Flash stuff, Java applets, ActiveX, etc.). Then you have only one version of the site to maintain.

Similar Threads

  1. PC suite can't detect my 6680 phone althouth PC detect it
    By Elnegm in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2006-12-25, 18:39
  2. Replies: 0
    Last Post: 2006-12-19, 01:12
  3. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31
  4. How Nokia data suite 3.0 detect the phone number
    By naoriya in forum General Messaging
    Replies: 1
    Last Post: 2002-10-10, 09:27
  5. how do i send ringtones via SMS from my website to phone
    By Nokia_Archive in forum General Messaging
    Replies: 1
    Last Post: 2002-05-20, 13:26

Posting Permissions

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