this post was submitted on 15 Feb 2025
13 points (100.0% liked)

Jerboa

10398 readers
1 users here now

Jerboa is a native-android client for Lemmy, built using the native android framework, Jetpack Compose.

Warning: You can submit issues, but between Lemmy and lemmy-ui, I probably won't have too much time to work on them. Learn jetpack compose like I did if you want to help make this app better.

Built With

Features

Installation / Releases

Support / Donate

Jerboa is made by Lemmy's developers, and is free, open-source software, meaning no advertising, monetizing, or venture capital, ever. Your donations directly support full-time development of the project.

Crypto

Contact

founded 3 years ago
MODERATORS
 

I'm writing a Lemmy bot. (No spoilers. I'll publish it one day.) To test it, I'm running a local Lemmy instance (via Docker) on a computer on my LAN and pointing my bot at it. That method works great, mostly. I can use Lemmy-UI just fine on my computer. I can also connect to that computer from a browser on my Android phone via http://192.168.1.199:1234/. I can also connect to Lemmy directly from my browser on my Android phone via http://192.168.1.199:8536/ and get a JSON payload (rather than an HTML page) with some information about the instance. So I'm certain I can connect to both Lemmy and Lemmy-UI from elsewhere on my LAN.

I also want to see exactly what posts made by my bot look like in Jerboa, but I haven't been able to figure out how to connect to it from Jerboa. On the "add account instance" interface, you can select an instance from the dropdown, but you can also type whatever you want into the dropdown field.

I've tried typing in:

  • 192.168.1.199
  • 192.168.1.199:1234 (Lemmy-UI is HTTP port 1234.)
  • 192.168.1.199:8536 (Lemmy is HTTP port 8536.)
  • http://192.168.1.199:1234/
  • http://192.168.1.199:8536/

(And, yeah, I figure port 1234 is probably not correct because probably Jerboa doesn't go through Lemmy-UI, but rather directly to Lemmy itself. But I figured I'd include those experiments here for completeness's sake.)

But I get the error message "Couldn't connect to the instance."

I'm running Jerboa 0.0.77 and Lemmy 0.19.8.

Thanks in advance!

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Shadow@lemmy.ca 4 points 1 week ago (1 children)

If it's all in docker, you probably need the docker container name as the target host. Assuming your docker network isn't in host mode.

[โ€“] TootSweet@lemmy.world 2 points 1 week ago

I've got Docker forwarding the ports to my host system, though. And I'm trying to connect Jerboa from a separate device that wouldn't know Docker is even involved. That connection works fine from a browser, so it doesn't seem to me like the hostname could possibly be the problem.