connecting to digikam mariadb host from two different subnet
leoutation at gmx.fr
leoutation at gmx.fr
Mon Jun 1 09:14:07 BST 2026
On 5/29/26 9:18 PM, Daniel Bauer wrote:
>
>
> 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).
I forgot to say I use Arch Linux, systemd-network and iwd
I solved the problem in a very simple way with IP aliasing
Just run
ip addr add 192.168.2.xx/24 dev wlan0
To make the change permanent, I add ethernet/digikam address in
/etc/systemd/network/26-wireless.network
[Network]
Address=192.168.3.xx/24 #wireless
Address=192.168.2.xx/24 #ethernet added line
For other distributions/configurations, good explanations here
https://www.linuxboost.com/a-step-by-step-guide-on-how-to-set-up-ip-aliasing-on-linux/
https://penguintutor.com/linux/networking-ip-alias-tutorial
>
> Search for your best solution in network manuals/forums for your
> operating system and router type.
>
>
>
More information about the Digikam-users
mailing list