PythonForS60_1_4_4_3rdEd
E51 100.34.20 29-09-2007
when WLAN connection is selected (to AP with DHCP), script always returned IP:196.254.13.225
import socket
ap_id = socket.select_access_point()
apo = socket.access_point(ap_id)
apo.start()
print "PHONE IP IS", apo.ip()
Logged In: YES
user_id=384041
Originator: NO
I have also noticed this problem on these devices
E61i, 2.0633.65.51, 03-10-07, RM-227
E90, 7.40.1.2, 03-10-2007, RA-6
when run under PythonForS60_1_4_4_3rdEd. The IP addresses are slightly different (169.254.48.131 and 169.254.66.11), but in no way can I produce the IP address supplied by our WiFi router: 192.168.2.x. This was tried with other clients actively using the WiFi connection, and when the above script was running solo.
Thanks for your bug report. However, it is missing some of the
following information:
- PyS60 version used (you can mark this in the "Group" field)
E.g. "1.3.11, the 2ndEdFP3 package from SourceForge"
- if tested on a device, the device used and its firmware
version. You can see the firmware version by entering *#0000# in
the idle screen. E.g. "Tested on 6630, firmware 6.03.08 13-02-06."
- if tested on the emulator, the SDK version used. E.g. "Tested
on S60 3rd Edition Maintenance Release emulator"
- a minimal test case demonstrating the problem (if applicable)
Posting these would help us in tracking down the problem. Thanks.
IfInfo tool for S60v3(c++)
shows twice a single interface with different settings
(when wlan connection is active)
===
Interface Name: EthWlan4
State: Up
Speed Metric: 10000
Mac Address: 00:1C:D6:xx:xx:xx
IP Address: 196.254.13.225
Netmask: 0.0.0.0
Broadcast: 0.0.0.0
Gateway: 0.0.0.0
DNS 1: 192.168.0.1
DNS 2:
Interface Name: EthWlan4
State: Up
Speed Metric: 10000
Mac Address: 00:1C:D6:xx:xx:xx
IP Address: 192.168.0.10
Netmask: 0.0.0.0
Broadcast: 0.0.0.0
Gateway: 0.0.0.0
DNS 1: 192.168.0.1
DNS 2:
===
only second IP value is true