I have been studying on the client-server communication between my cell phone and the emulator.
I want to connect to my cell phone from emulator.
For this reason, I can get my cell phone ip with getLocalAddress() method by using an instance of ServerSocketConnection.
However, my cell phone ip changes constantly(once per second). Because I can't get the true ip of my cell phone at that time, I can't connect to my cell phone from emulator.
Is there anyone who knows what I must do?
Thanks in advance.
How doesn't a cell phone have an IP?
Each cell phone has an IP.
This IP is generally assigned as private by some operators Whereas, some operators assign a public IP to cell phones.
I learned that my operator assigns public IP to cell phones and I wanna try to connect to my cell phone by giving IP address of it.
I can read the IP of my cell phone dynamically. But, my problem is that my cell phone IP changes constantly.
What should I do to make the ip address of cell phone static?