Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4750] Find the IP associated to a mac address

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionWon't Fix
Resolution Date2017-01-25T19:50:40.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterVenkata
AssigneeShak Hossain
Created2017-01-24T23:54:28.000+0000
Updated2017-01-26T02:30:25.000+0000

Description

Is there a way that we can actually retrieve the arp table of the router that a app connected to? so that we can find the IP address of any device that is connected to same netowork. app built using titanium API Scenario: 1. I have a iPad application that need paired with a payment device. 2. payment device a mac address and when it connects to network it gets a IP address but it keep changing. 3. if i have a option in the API to lookup the IP of this device using the mac address i can actually do the pairing process so easy.

Comments

  1. Hans Knöchel 2017-01-25

    Hey there, iOS does not have a public API for it, so we can't expose it as well. There are some native hacks to get the mac-address from a current IP address, but that's not what you're looking for I guess. See [this StackOverflow](http://stackoverflow.com/questions/31226522/ios-get-arp-table) for more infos.
  2. Venkata 2017-01-26

    Hi,I saw that there are lot of hacks that works for IP2Mac but not mac to IP. world is turning to mobile and wifi based devices so integration become easy of there are API's like this.

JSON Source