# Using android tablets and cable

**URL:** <https://openflexure.discourse.group/t/using-android-tablets-and-cable/2465>\
**Category:** Request Help\
**Created:** [3 June 2026 16:55 UTC](https://openflexure.discourse.group/t/using-android-tablets-and-cable/2465 "2026-06-03T16:55:27Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pelle](https://avatars.discourse-cdn.com/v4/letter/p/65b543/32.png) [@Pelle](https://openflexure.discourse.group/u/Pelle)\
**Post date:** [3 June 2026 16:55 UTC](https://openflexure.discourse.group/t/using-android-tablets-and-cable/2465/1 "2026-06-03T16:55:27Z")

</div>

Hi,  
I’ve been playing around with connecting to my OFMs using android tablets, with it and an OFM being connected to the same WiFi. With that setup it is possible to connect to the OFM using the web browser, giving a very nice experience!

I tried connecting my tablet directly to the OFM using USB-C ↔ ethernet cable. But with this setup I could not find the microscope using any web browser address combination, and thus not being able to connect to the OFM using cable. I also tried changing security settings, un-checking a lot of boxes.

1. Has anyone found a way to connect to an OFM using android tablet and USB-C ↔ ethernet cable?
2. Is there a way to get [Openflexure connect](https://openflexure.org/software/openflexure-connect) on android (without using a virtual machine)? Maybe it can find the microscope over cable connection.

Img-installation: Openflexure [V3-alpha5](https://openflexure.discourse.group/t/fifth-and-final-alpha-for-the-v3-server/2407)  
Tablet: [Samsung Galaxy Tab A11 - Wikipedia](https://en.wikipedia.org/wiki/Samsung_Galaxy_Tab_A11)  
Cable: [Nätverkskabel med USB-anslutning USB-C 1 m | Kjell & Company](https://www.kjell.com/se/produkter/natverk/natverkskablar/natverkskabel-med-usb-anslutning-usb-c-1-m-p69565)

Please share if you have any experience with this, I’d love to hear it!

Best regards

Per

---

<div class="post-metadata">

**Author:** ![WilliamW](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/williamw/32/106_2.png) [@WilliamW](https://openflexure.discourse.group/u/WilliamW)\
**Post date:** [3 June 2026 19:30 UTC](https://openflexure.discourse.group/t/using-android-tablets-and-cable/2465/2 "2026-06-03T19:30:33Z")

</div>

Cool.

One thing to try is to plug a screen into the Pi. The OpenFlexure Alpha5 server has not got a desktop operating system, but if you plug in a screen it will tell you its IP address. When there is no network it says something like 0.0.0. When it is on a network it will tell you the IP address that it has negotiated. I have had to use this on Windows because, like you, the microscope would not show up by name in the browser, and I had not got Connect installed.

I suppose that the other question is wheter the USB ethernet cable works to connect to other networks from the tablet. There might be some Android setting. It is also worth having wifi (and mobile data?) switched off. Some operating system implementations are very unwilling to connect to a network that does not have an actual internet connection

---

<div class="post-metadata">

**Author:** ![adamglia](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/adamglia/32/2636_2.png) [@adamglia](https://openflexure.discourse.group/u/adamglia)\
**Post date:** [3 June 2026 21:45 UTC](https://openflexure.discourse.group/t/using-android-tablets-and-cable/2465/3 "2026-06-03T21:45:47Z")

</div>

Can’t speak on the cable (never knew there was an ethernet → usb-c one), but if you can run a terminal on the Pi, then the “ip -4 a” command will show the current local address. Would probably have to hook up a monitor / keyboard / mouse to the Pi to do that though? On the tablet, you can try an app “Ping & Net”, found it recommended on some thread. I tried hosting a usb hotspot and it seems to find the tether ip in one of the “select host” dropdowns.

Another thing to check out, is hosting a hotspot on the RPi itself, as an alternative to the cable. You can essentially create a network for the tablet to connect to right to the RPi, rather than using the cable to do so

---

<div class="post-metadata">

**Author:** ![Pelle](https://avatars.discourse-cdn.com/v4/letter/p/65b543/32.png) [@Pelle](https://openflexure.discourse.group/u/Pelle)\
**Post date:** [3 June 2026 21:47 UTC](https://openflexure.discourse.group/t/using-android-tablets-and-cable/2465/4 "2026-06-03T21:47:05Z")

</div>

thanks @WilliamW

with microscope and only monitor it reads 127.0.1.1

when connecting to the tablet, using USB-C ↔ ethernet cable, it reads 169.254.72.145. This address does not work and seem to be some fallback thing when I read about it. Networking is a jungle for me, I think my best bet is trying to explain myself to samsung support and see if they can help. I will give an update on the issue.

---

<div class="post-metadata">

**Author:** ![Pelle](https://avatars.discourse-cdn.com/v4/letter/p/65b543/32.png) [@Pelle](https://openflexure.discourse.group/u/Pelle)\
**Post date:** [3 June 2026 21:59 UTC](https://openflexure.discourse.group/t/using-android-tablets-and-cable/2465/5 "2026-06-03T21:59:12Z")

</div>

Thanks @adamglia,

Yeah, I try the OFM IP as address but without success. Over wifi hotspot it connects with no problem, but I want it to work over cable.

I have tried making the RPi into it’s own access point, but my experience is that I never get the crisp response time. Do you achieve that? I also experienced that turning the microscope into an access point [disables regular Wi-Fi functions](https://openflexure.discourse.group/t/using-rasp-ap-to-turn-ofm-into-an-access-point/474/7). Does that happen to yours too?

---

<div class="post-metadata">

**Author:** ![WilliamW](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/williamw/32/106_2.png) [@WilliamW](https://openflexure.discourse.group/u/WilliamW)\
**Post date:** [4 June 2026 07:08 UTC](https://openflexure.discourse.group/t/using-android-tablets-and-cable/2465/6 "2026-06-04T07:08:35Z")

</div>

That sounds as though the cable connection is working, it is odd that you cannot then find the microscope interface at 169.254.72.145:5000

---

<div class="post-metadata">

**Author:** ![adamglia](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/adamglia/32/2636_2.png) [@adamglia](https://openflexure.discourse.group/u/adamglia)\
**Post date:** [5 June 2026 10:29 UTC](https://openflexure.discourse.group/t/using-android-tablets-and-cable/2465/7 "2026-06-05T10:29:27Z")

</div>

> [@WilliamW](#):
>
> 169.254.72.145

When I tried the tethering, the IP of the PC was “192.168.42.XXX” which is typically what the tethering on Android uses. I used that Ping & Net app on my phone then confirmed with ipconfig /all on my PC that it “found” the same network adapter. @Pelle have you tried that specific route?  
Edit: I’ll try to connect up the phone to the RPi and enable tethering later in the day to see if I’m able to connect via USB-C → USB-A

---

<div class="post-metadata">

**Author:** ![WilliamW](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/williamw/32/106_2.png) [@WilliamW](https://openflexure.discourse.group/u/WilliamW)\
**Post date:** [5 June 2026 13:09 UTC](https://openflexure.discourse.group/t/using-android-tablets-and-cable/2465/8 "2026-06-05T13:09:21Z")

</div>

I was just quoting the IP address that Per said was displayed on his Pi after negotiation with the dongle.

---

<div class="post-metadata">

**Author:** ![Pelle](https://avatars.discourse-cdn.com/v4/letter/p/65b543/32.png) [@Pelle](https://openflexure.discourse.group/u/Pelle)\
**Post date:** [8 June 2026 23:04 UTC](https://openflexure.discourse.group/t/using-android-tablets-and-cable/2465/9 "2026-06-08T23:04:53Z")

</div>

> [@adamglia](#):
>
> @Pelle have you tried that specific route?

I have not tried that yet, will look into it, thanks.

> [@adamglia](#):
>
> to see if I’m able to connect via USB-C → USB-A

would be interesting to know how it works out.

---

<div class="post-metadata">

**Author:** ![Pelle](https://avatars.discourse-cdn.com/v4/letter/p/65b543/32.png) [@Pelle](https://openflexure.discourse.group/u/Pelle)\
**Post date:** [15 June 2026 15:39 UTC](https://openflexure.discourse.group/t/using-android-tablets-and-cable/2465/10 "2026-06-15T15:39:53Z")

</div>

Hi again,  
a little late but I was finally in contact with Samsung support. Lucky me I got paired with a network expert. He helped me set up static-IP instead of using DHCP as ethernet connection approach. While cabled (only USB-C to tablet, let the ethernet-end hang loose) you can chose between “DHCP” or “Static IP” as ethernet connection approach. When choosing “Static IP” you are asked to fill in “IP-address”, “Net mask”, “DNS-address” and “Gateway”.

I was suggested to try these numbers:

IP-address  
169.254.72.200  
Net mask  
255.255.0.0  
DNS-address  
8.8.8.8  
Gateway  
169.254.72.1

and then save.

I then connected the USB-C ↔ ethernet cable to the microscope and it all worked! I can now find the microscope using the web browser (while cabled). I have confirmed this on three other microscope - tablet pairs, using the same settings and it all worked.

I have little to no network knowledge, so don’t ask me why it works or how he came up with the numbers. This solution might be specific to Samsung tablets (even model A11), but hopefully it can be of help to anyone stuck in the same situation.

Best regards

Per

---

<div class="post-metadata">

**Author:** ![Pelle](https://avatars.discourse-cdn.com/v4/letter/p/65b543/32.png) [@Pelle](https://openflexure.discourse.group/u/Pelle)\
**Post date:** [27 August 2026 16:58 UTC](https://openflexure.discourse.group/t/using-android-tablets-and-cable/2465/11 "2026-08-27T16:58:38Z")

</div>

I was gonna post a sad story, ending in troubleshooting misery, when the penny dropped!

Aside from tablet connected via USB-C ↔ ethernet, I sometimes use the set-up of: an OFM, a power-bank, a travel router (left image). This makes for a great classroom or fieldwork set-up. I’ve also incorporated a ethernet cable between the router and the OFM (right image), imagining it gives slightly faster responsiveness 😃

I noted issues connecting to microscopes running V3-alpha5 over the wifi of a travel router. I realised the router and microscope were conflicting in assigning the ip, making it difficult to connect to. This finally made me realise the problem might be my cabling. When powering-up the microscope while already being cabled to the router (right image) via ethernet, creates conflicting IP-assiging, making the OFM undetectable when using browser “hostname.local:5000”.

 ![20260827_182136_mod](https://global.discourse-cdn.com/free1/uploads/openflexure/original/2X/6/6b1b0ee793ac5dc3360094b79ae4017e26b7fba0.jpeg)

 ![20260827_182253_mod](https://global.discourse-cdn.com/free1/uploads/openflexure/original/2X/3/3c56c409ea311cab0a5b9ecb04d24483910a5b30.jpeg)

Best way powering-up is with the OFM and router not being connected (left image). Once everything is up and running, one can connect an ethernet if one wants to.

I am happy to have solved my own issue, and share it here in case it can be of any help to anyone.

---

<div class="post-metadata">

**Author:** ![j.stirling](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/j.stirling/32/3_2.png) [@j.stirling](https://openflexure.discourse.group/u/j.stirling)\
**Post date:** [28 August 2026 08:53 UTC](https://openflexure.discourse.group/t/using-android-tablets-and-cable/2465/12 "2026-08-28T08:53:47Z")

</div>

Thanks Per,

We need to get that into the troubleshooting section of the handbook.

There is an [open issue for this on the OS repo](https://gitlab.com/openflexure/raspberry-pi-os-image-customiser/-/work_items/31). The root cause is the networking configuration. We have it set up to check if it can connect with DHCP (when it assigned an IP by a router) and if it can’t after a timeout the connection reverts to “local link”.

**This works well if:**

- Your router is fully booted and ready when the microscope first tries to connect
- You use the microscope over local link by plugging an ethernet directly into your computer

**This fails:**

- If your router boots after the microscope had decided to go onto local link

**Workaround:**  
Unplug the Ethernet cable, wait a few seconds so the connection fully is dropped by the OS, plug in the cable and DHCP should work.

**The real fix:**  
We need to fix this on the OS but my attempts haven’t been great.

- Ideally we would have 1 network config file that can try either, I can’t find a way to make this work
- Find a way for Local link to timeout an retry DHCP. I can find a way for it to move to the next configuration on timeout, but not to move back to the first one and start the loop again.
- Write some custom script for monitoring and switching, which seems a bit janky

**Help!**

If anyone knows someone who really understands the Linux networking stack this would be a great way to contribute to the project. The start of almost every demo is me either trying to unplug/re-plug the Ethernet cable, or it is me working out why Android is now clever enough to ignore its settings and detach from the travel router WiFi.

---

<div class="post-metadata">

**Author:** ![Pelle](https://avatars.discourse-cdn.com/v4/letter/p/65b543/32.png) [@Pelle](https://openflexure.discourse.group/u/Pelle)\
**Post date:** [29 August 2026 10:03 UTC](https://openflexure.discourse.group/t/using-android-tablets-and-cable/2465/13 "2026-08-29T10:03:25Z")

</div>

Hi Julian,

thanks for the clarification. I am satisfied as is, after figuring out the issue, but I understand that you want clean fix on the OS. I’ll keep an eye out for Linux networking skills!

---

<div class="post-metadata">

**Author:** ![j.stirling](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/j.stirling/32/3_2.png) [@j.stirling](https://openflexure.discourse.group/u/j.stirling)\
**Post date:** [4 September 2026 11:29 UTC](https://openflexure.discourse.group/t/using-android-tablets-and-cable/2465/14 "2026-09-04T11:29:30Z")

</div>

I have been using travel routers, but the issue I have had a lot is that Android devices detect there is no internet and then disconnect from the network.

In theory this behaviour can be turned off on a per network basis, but this is broken with some tablets including my Lenovo. The workaround I was using was to use a fixed IP rather than DHCP. But this meant that there was no mDNS (so you can’t access `microscope.local` you need to know the microscope’s IP.

Today I finally got annoyed with it enough to fix it. Note this won’t work for all travel routers, this works however for a GL iNet router that is based on open wrt. Here is how I fixed it:

## The idea behind the fix

Android checks `http://connectivitycheck.gstatic.com/generate_204`  
generates a 204 response to know it is online. We need to intercept this and return generate\_204

## SSH into the router

`ssh root@192.168.8.1`

## Set up a local generate\_204 in nginx

`ls -la /etc/nginx/conf.d/`

should show something like `gl.conf`

Edit that (`vi` is installed `nano` isn’t 😥 )

`vi /etc/nginx/conf.d/gl.conf`

press `i`

navigate to inside the `server` block where other locations are.

Add:

```auto
    location = /generate_204 {
        return 204;
    }

```

Press **Escape** followed by `:wq` to escape VI.

Finally run:

`nginx -s reload`

To reload nginx.

On your own computer run:

`curl -i --max-time 10 http://192.168.8.1/generate_204`

You should now see:

```auto
HTTP/1.1 204 No Content
Server: nginx/1.17.7
Date: Fri, 04 Sep 2026 10:37:02 GMT
Connection: keep-alive

```

## Intercept [http://connectivitycheck.gstatic.com/generate\_204](http://connectivitycheck.gstatic.com/generate_204)

In the GL iNet web interface go Network → DNS - \> Edit Hosts (button in top right)

Add the line

`192.168.8.1 connectivitycheck.gstatic.com`

and click apply.

## Make sure your Android is using DHCP and the local DNS

In the network settings on the android set up DHCP.

In termux on the tablet you can run:

`ping -c 1 connectivitycheck.gstatic.com`

It should show `192.168.8.1`.

## Check it all works

Finally turn off the Repeater in the GL iNet admin panel to kill internet.

Now disconnect from the network on the tablet, reconnect to the network and hopefully it still thinks it has internet!
