How to get SIM ip address for ipad - ios

I need to know the source IP for my iPad using my SIM network. Is there any way to get source IP address for SIM network

Go to a website like e.g. http://www.whatsmyip.org and there you can see your public IP address.

Related

Scan router connect self assigned ip address(169.254.164.XX) in ios

I'm working on sample project router connected devices and camera IP address.
I tried these 2 sample projects: LAN-Scan, MMlanScan.
This sample project showing only IP assigned devices and camera IP address using subnet mask concept. I want to show self-assigned IP address (169.254.164.XX) and DHCP server assigned IP address from router.

Find IP address from device MAC address in Objective C

I am developing an iOS application which require ip address of device for communication, I have MAC address of device from which I need to find IP address, there is available help for finding MAC address from IP address but not the same.
I have referred LAN-Scan library but it is pinging each devices in network and and will get list of connected devices and for each ip address I need to find MAC address and compare with available MAC address.
My question is, Is there any way that we can find directly find ip address for particular MAC address in the network using Objective C?.
This script should give you what you are looking for really quickly and requires to have nmap installed. The advantage is that if your host does not reply to ping probes, nmap would still find the host while other tools will not.
more info https://apple.stackexchange.com/questions/19783/how-do-i-know-the-ip-addresses-of-other-computers-in-my-network

Programmatically find if the iPad is on IPv4 or an IPv6 network

I have a functionality in iOS which I need to disable if the user's device network in IPv6. Is there a way we can get the device (iPhone/iPad) IP address as a string programmatically, and then check if it's IPv4 or IPv6 network (or simply tell whether it is on IPv4 or IPv6 network without fetching the actual address)?
The closest I could get to was iPhone/iPad/OSX: How to get my IP address programmatically? (by David H.), which again wants us to specify the network beforehand only, hence doesn't solve my purpose...
By his solution either I always get an IPv4 or always an IPv6.
For testing on IPv6 I'm using the Apple's recommended NAT64 tool (https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html).
As a workaround I'm using the DNS to check (https://hirooka.pro/?p=6169) currently, which I feel is not a proper way as it should be IP address based.
Also, quite weirdly, the iPad always shows an IPv4 address (even when connected to IPv6 network) but only varies in the DNS style... Anybody knows why that happens ?
Thanks in advance.

Find MAC Addresses of devices in range of Wifi router with programatically

How can I programtically get the MAC address of WiFi router.
i want the command or the program in c which will list only the mac address of devices which are connected to the my WiFi router. it it possible to get when i know the IP address of the router?
Getting the MAC of the WiFi router on which you are connected (or try to connect) is probably possible if you have access to low level network frame.
Now it looks you are indeed willing to get the MAC of ALL the devices connected to the WiFi router, which is another thing ! Unless the router has some building functionality that gives you this list (like an HTML summary, I don't know if openWrt provide this), I don't think by running a program in C on a client, you would be able to get the MACs of other connected clients !
But in case the router as the information in an html page (eg : from a remote administration), you might try to simulate login to administration, get this page then parse the page to get the MACs... from a C prog..
Taking your problem from another side, if you have a wireless adapter you can set in monitor mode, you could sniff the wireless traffic on the channel(s) opened by your targeted WiFi router, and list the distinct client connected. Have a look to BackTrack's ssidsniff ?

Is it possible to ping offline devices?

This may be a strange question but I really want to learn how "ping" command works. Today when I had my smartphone open and online, I pinged its external(public) IP from my terminal in Linux with "ping [ip address]" command and it worked of course.
When I turned off my smartphone and retried to ping its IP, it worked again! As far as I know ping is like sending a message and then getting a reply from the target.How is this possible since my phone is offline?
Any explanation is much appreciated! Thanks!
UPDATE:
Both my phone and PC use Wifi to connect to the internet and are in the same network.
Also there was not any other device that joined the network when I tried the above.
If you subscribe the service from an ISP, then you might share the use of one public IP address among your devices to connect to the Internet. Internally you'll use private IP addresses for your PC and phone. It seems to me that what you have pinged was the public IP address assigned on the gateway of your wifi router and not your phone.
If you are not sure, then try to access http://whatismyipaddress.com/ from both your devices and see if you have the same IP address or not.

Resources