question

Koni avatar image
Koni asked

How to get fire tv ip address programmatically?

Hi

I use Fling SDK and I can successfuly discover my fire tv in my Android app. How can I find out the ip address of my fire tv by using the Amazon Fling SDK?

Thanks.

fire tvsdkamazon fling
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Levon@Amazon avatar image
Levon@Amazon answered

Hi Koni,

Thanks for posting! Unfortunately, the Amazon Fling SDK itself does not have an API to get the IP address of the remote device.

If you need the IP address of the Fire TV, there is one alternative. All the Amazon Fire TV devices run a DIAL server. You could search for the DIAL server by following the DIAL spec: http://www.dial-multiscreen.org/dial-protocol-specification

Once you find the Fire TV, you could compare its name with the device discovered via the Fling SDK if you need to correlate the device discovered via the Fling SDK and its IP address.

Hope this helps.

Best regards,

Amazon Fling SDK Team

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.