So here's the deal:
I wrote a server that runs on nokia phone
Source: http://www.mobilenin.com/pys60/resou...t_pc_server.pyCode:import socket HOST = '' # Symbolic name meaning the local host PORT = 12008 # Arbitrary non-privileged port print "define the socket" s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) print "bind the socket" s.bind((HOST, PORT)) s.listen(1) print "waiting of the client to connect" conn, addr = s.accept() print 'Connected by', addr while 1: data = conn.recv(1024) if not data: break conn.send(data) conn.close()
Everything ok so far BUT now writing a client on PC I need to know phone's ip so I can establis connection to it
and I want application which runs on phone to tell me phone's ip... how do I do it?
oh and this wont work:
http://wiki.forum.nokia.com/index.ph...ss_using_PyS60
it sais there's no method "select_access_point()" or something like that

Reply With Quote

