Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding IP Address for IPhone

Tags:

iphone

ip

I am working on IPhone. I want to know how to find a ip address of a iphone through USB/3G not on wifi. I am aware of seeing IP if it is connected through WiFI.(Going through settings and looking under Wifi) But i need IP through USB / 3G. what i did means i used personal hotspot and i connected my iphone to PC through usb. I got an IP. But when i added one more Iphone with same hot spot enabled and connected through USB i am getting like unidentified network.

By using whatismyip.com site i am getting an ip . but i cant do anything with it. I am unable to reach my iphone with the provided ip of that site.

So can anyone kindly provide information on how to look for IP of multiple Iphones connected to same PC.

The purpose is to communicate to muliple iphones with their IP's.

Thanks a million in advance.

like image 972
Lokesh gnana Sekhar Avatar asked Jun 08 '12 09:06

Lokesh gnana Sekhar


People also ask

Does an iPhone have an IP address?

Start by launching Settings on your iPhone. Then tap the “Wi-Fi” option. In the “Wi-Fi” menu, next to your currently-connected wireless network, tap the “i” icon. On the network page, next to “IP Address,” you'll see your iPhone's current private IP address.

How do I find my phone's IP address?

Go to Settings >> Wireless & networks/WLAN, or Settings >> Network & Internet >> Wi-Fi. Tap on the Wi-Fi you are connected to, then it will show the network info including signal strength, security, MAC address and IP address.


1 Answers

Unfortunately the responses are not completely correct. In a 3G/4G network every device gets an IP address, but THAT's NOT the IP address that you see when going to sites like www.whatismyip.com. That's the address that the Telco presents to the external world, not the device IP address.

Telcos such AT&t, Verizon, Telefonica and similar assign a "private" IP address that is only valid in their network. This is similar to the internal IP address that you have in your phone when connect to the house wireless, but if you check in www.whatismyip.com you get the external IP address of your wireless router (You can check that those are different addresses). What Telcos do is known as NAT or PAT. The reason is that the current version of IP has a very limited number of available IP addresses, and all those million of devices cannot get public IP addresses (like the one you see in whatismyip.com). Actually several devices share that external IP address.

Unlike Android devices where you can get the IP that the telco assigned to the device, iOS does not present that information to the user (unless you jailbreak the device or have an App).

Although the address that whatismyip presents is not your real IP, it is the one that the external world recognizes so it suffices for most purposes.

like image 87
Helper Avatar answered Oct 11 '22 05:10

Helper