I want to know how to get the Mobile IP or number

source code for getting the IP of your mobile

String localAddress = "127.0.0.1";
try {
SocketConnection con = (SocketConnection)
) Connector.open("socket://www.sun.com:80");
     localAddress = con.getLocalAddress());
} catch (IOException e1) {
//     e1.printStackTrace();
System.out.println(localAddress);if you are using this code on BlackBerry's you have to add the deviceside flag:
...Connector.open("socket://www.sun.com:80;deviceside=true");
...atlan

Similar Messages

Maybe you are looking for