Hi, It is possible create a socket connection using the SocketConnection class in the GCF. But if you want to connect a PC to a mobile through socket connection, it will be a problem, cause it is a server push. You can use the PushRegistry to push data from the server to the phone. According to my knowledge it is not possible to configure a IP address to a phone, you will get one when you connect through GPRS. Hope this information helps you. Regards.
SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
As long as two devices (PC or mobile) have IP addresses, they can be connected through SocketConnection or ServerSocketConnection on the J2ME side; whatever socket API you use on the PC.
ServerSocketConnection and Push Registry can be combined so that a MIDlet is started in response to an incoming socket connection on a specified port.
There is no standard way for assigning an IP to a mobile, it should be the one you get through GPRS. It is normally best to have the mobile contact a known server (ie the one you want) first to acknowledge its presente.