×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    1

    The API to change the ip adress of WLAN connection

    i have set an adhoc from my pc through a LAN port to Wireless card so i connect to the phone through WLAN , my problem is that every now and then it gives "No gateway reply" message and i have to manually change the ip of WLAN connection as s60 phones lack a repair tool like windows one that can refresh my ip automatically and doing so manually is quite a hassle considering how frequently i have to do so .

    So I was wondering if there is any API that can do something like that ? i.e change the ip address of an internet WLAN connection in the destinations ? sorry if it seemed a trivial question i am just new to "symbian" , "S60" , and mobile programming all together

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,698

    Re: The API to change the ip adress of WLAN connection

    Technically you can specify IP address via the CommsDat/CommDb API-s (if you search for some combination of access, point, create, creation and iap in the Wiki, you will certainly find several related articles).
    However in my opinion the act what matters is not changing the IP address, but restarting the WLAN interface. At least I am developing applications for ad-hoc WLAN, and after a while the interface inevitably dies.
    From the end-user point of view you could simply use the Connection Manager, and stop the WLAN interface from there - when it gets restarted, it will probably work again. From the developer's point of view, there the API for stop-ing an active interface is RConnection::Stop, but it requires NetworkControl capability as far as I know, and that is the point where things start to get difficult.

    You can try asking around on http://www.nokia.com/discussions

  3. #3
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: The API to change the ip adress of WLAN connection

    This was an issue on the 5800 at least.
    http://www.techviolation.com/no-gate...in-nokia-5800/
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

Similar Threads

  1. RTP Extension API issue in WLAN
    By samirkumar in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2008-12-23, 05:09
  2. Connection Monitor API, Who knows how to use?
    By lifangjie in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2007-10-31, 11:21
  3. WLAN connection for Series 40
    By jmp in forum Wired and Wireless interfaces (Closed)
    Replies: 1
    Last Post: 2007-05-31, 10:45
  4. How to receive destination ip address of connection
    By AndySH in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2007-03-23, 11:37
  5. Wireless Messaging API for 3650 - opening sms connection
    By jezovec in forum Mobile Java General
    Replies: 1
    Last Post: 2002-12-04, 11:49

Posting Permissions

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