litrik / displayer

An open source multi-platform app for digital signage
Apache License 2.0
49 stars 10 forks source link

Can't connect to admin server #25

Open Jothebug opened 7 months ago

Jothebug commented 7 months ago

Hi @litrik ,

I start successfull server with command:

adb shell am start -a com.displayer.action.CONFIG \
     -e com.displayer.extra.ADMIN_PORT 4000 \
     -e com.displayer.extra.ADMIN_SECRET "SsU3rAYVqZ3d" \
     /

<img src="https://github.com/litrik/displayer/assets/154396222/f0f8e9d6-aa49-4cd2-8a97-6482493a8031" alt="image" width="250px"/>

but when i try to load a remote display file with command as you guided:

curl "http://192.168.31.199:4000/admin?secret=SsU3rAYVqZ3d&url=https://raw.githubusercontent.com/litrik/displayer/main/docs/samples/regions.json"

and I get error like below:

curl: (7) Failed to connect to 192.168.31.199 port 4000 after 5 ms: Couldn't connect to server

I run app on macOS Apple chip M1. Please let me know what part i miss. Thank you in advance.

litrik commented 7 months ago

@Jothebug That's strange. Are you 100% sure 192.168.31.199 is the correct IP address? Can you doe ping 192.168.31.199?

If both answer are 'yes'.... Is this on an emulator? Or a real device? Is there a firewall active that might be blocking the connection?