How can I know the IP address of my iPhone simulator?
Asked
Active
Viewed 8,972 times
3
-
2Duplicate question [how-do-i-query-the-iphones-current-ip-address](http://stackoverflow.com/questions/260484/how-do-i-query-the-iphones-current-ip-address) it shows how to get Internet address and the local dhcp address. – Black Frog Apr 14 '11 at 18:34
3 Answers
7
It will have the same IP addresses as the computer you’re running it on.

Todd Yandell
- 14,656
- 2
- 50
- 37
2
Jep, like Todd said, the same as your machines IP. You can also simply visit http://www.whatismyip.com with mobile Safari or your Mac's web browser ;-)

tamasgal
- 24,826
- 18
- 96
- 135
-1
I think the by visiting the website http://www.test-ipv6.com/ is also a good choice. As the site tells you both the ipv4 and ipv6 global-unicast address

zhuo
- 21
- 3
-
-1 This site would see the computers IP address, and, because the iPhone Simulator is virtualized, it would only provide the IP address of the host computer and therefore would be of no use to the asker. – zachjs Oct 10 '12 at 23:56