connecting to digikam mariadb host from two different subnet
Daniel Bauer
linux at daniel-bauer.com
Fri May 29 20:18:36 BST 2026
Am 29.05.26 um 18:56 schrieb leoutation at gmx.fr:
> Hi
> I use Digikam/Mariadb with address/static/hostname like 192.168.2.xx on
> local ethernet network, in same computer subnet. It runs fine when
> connecting from two machines in same subnet.
> When using wireless/static address on a computer, subnet is different,
> computer address is now 192.168.3.xx
> So, I'm unable to connect to digikam db , hostname 192.168.2.xx now when
> using wireless
> Is there a way to configure digikam and/or mariadb to connect to same
> digikam mariadb hostname from different subnet ?
> Thanks
This is not a digikam but a network problem. You cannot directly connect
to a machine in another subnet than its own.
The easiest solution is to connect both computers to the same subnet
(e.g. both same ethernet, or both same wifi).
If you can't, you need routing between the subnets and set up your
router accordingly or add routes manually on the computers using the
"route add" command.
You can also install Tailscale or ZeroTier on both computers; they
connect regardless of subnets/firewalls.
Or use WireGuard: Lightweight VPN.
Or mDNS / Avahi: For hostname resolution (.local names) across subnets
(install Avahi on Linux, enable Bonjour on Windows/macOS).
Search for your best solution in network manuals/forums for your
operating system and router type.
--
Daniel Bauer photographer Basel Málaga
Twitter: @Marsfotografo (often explicit nudes)
https://www.patreon.com/danielbauer
https://www.daniel-bauer.com (nudes)
More information about the Digikam-users
mailing list