Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to admin server #25

Open
Jothebug opened this issue Jan 14, 2024 · 1 comment
Open

Can't connect to admin server #25

Jothebug opened this issue Jan 14, 2024 · 1 comment

Comments

@Jothebug
Copy link

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" \
     /

image

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
Copy link
Owner

litrik commented Jan 15, 2024

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants