Categories: Python | S60 | Code Examples | How To
This page was last modified 09:45, 18 April 2008.
How to get phones IP address using PyS60
From Forum Nokia Wiki
This is a simple code snippet from which you can get your phones IP address using PyS60
import socket ap_id = socket.select_access_point() apo = socket.access_point(ap_id) apo.start() print "PHONE IP IS", apo.ip()
If the returned IP address is 169.254.234.80, then DHCP failed and your router didn't give you any IP. Please check your Access Point settings.
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help in porting Pyexpat for 3rd edition | tsharju | Python | 18 | 2008-04-13 18:04 |
| Access SIM Card Information | anupamcins | General Symbian C++ | 19 | 2007-02-05 13:10 |
| Problem in getting Address from address book | Nemat | Mobile Java Networking & Messaging & Security | 4 | 2008-06-24 08:22 |
| Run PyS60 App from a SMS | aymanshamma | Python | 2 | 2006-04-13 09:30 |
| Setting DNS address | rmercer | Symbian Networking & Messaging | 0 | 2002-12-16 19:10 |
