Accessing remote device IP at application level

asked 2014-05-29 23:05:14 -0700

anchit211 gravatar image


While discovering service, is there any way to get device info like IP address of the remote device advertising the same service at application level. I want to retrieve the IP address of the remote device while discovering i.e. when FoundAdvertisedName is called and before joining the session

Regards, Anchit

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-05-30 10:08:43 -0700

stevek gravatar image

AllJoyn was not designed to provide that kind of information. AllJoyn was designed to hide networking details so that application developers could focus on application functionality as well as to support discovery and communications over transports other that IP networks. If your application discovered a remote application over a serial port or Bluetooth connection, there would be no IP address.

That said, if you are writing the application on both sides, then there is nothing stopping you from having the remote side send its IP address in an AllJoyn message to the local application.

edit flag offensive delete publish link more


You are right I can send data related to ip from the remote device , but tgat is possible when I join a session. Is there any way to send the ip from remote device before joining the session when foundadvertisedname callback is called

anchit211 ( 2014-05-31 21:33:27 -0700 )edit

No, AllJoyn does not provide that information. Once you've gone through all the effort to get the FoundAdvertisedName callback, it's pretty simple to join a session and send a message. If all you want is an IP address, then you may want to look into mDNS.

stevek ( 2014-06-02 12:22:17 -0700 )edit

Thanks stevek :)

anchit211 ( 2014-06-02 23:47:14 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-05-29 23:05:14 -0700

Seen: 192 times

Last updated: May 30 '14