hap-java / HAP-Java

Java implementation of the HomeKit Accessory Protocol
MIT License
152 stars 83 forks source link

Not working on RaspberryPi or NanoPi #46

Closed mkattner closed 5 years ago

mkattner commented 6 years ago

Hey,

I'm trying to run your software samples on a raspberry pi or a nano pi.

The sample is forking fine on my Mac. When I start the sample on a raspberry pi, the bridge starts and I can see it on my iPhone. But I can't connect to it.

Same happens on a NanoPi.

What can be wrong?

Best, Martin

mvmn commented 5 years ago

Can it be your wifi? Do you use wired or wireless connection to the Pi?

timcharper commented 5 years ago

@mkattner I bet you're binding to 127.0.0.1, instead of the IP of the raspberry PI. HAP-Java advertises the IP address to which it's bound, so discovery will work... but your iPhone won't be able to connect to it at 127.0.0.1