we are working to create ad-hoc network between nokia 5800 phones. we have installed python 1.9.7 . how to set phone's ip address?

we would be very thankfull if any one tells how to approach for...