I have a Raspberry Pi that is connected to my network and a Samsung Gear S that is connected to the same network. The Raspberry Pi is used as a server and the Gear S sends data to it. I currently need to insert the Raspberry Pi IP address manually in the Gear S app whenever I connect to another network. So everything works fine if I use this address: http://192.168.0.227:8080/appdata/post". I've found that you can use raspberrypi.local and that the raspberry pi will recognize this address as it owns. My problem is that when I try to post something to the address "http://raspberrypi.local:8080/appdata/post" using Javascript, the post doesn't come true. The problem is that raspberrypi.local cannot be resolved.
When I execute the javascript of the app on my laptop so with the address "http://raspberrypi.local:8080/appdata/post" it does come through. So I guess the problem lies with the Gear S itself. How can I overcome this? Thanks.