ReceiverError TCP communication stopped working when in a subnet

I am getting a ReceiverError: the TCP communication to {my device name} ({subnet gateway ip}) stopped working. Server version is 0.12.4 and android is 0.12.1.

It works fine when in the same subnet.

Example:

Network 1: 192.168.1.0/24
net1 router @ 192.168.1.1
server @ 192.168.1.10
net2 router @ 192.168.1.15

Network 2: 192.168.2.0/24
net2 router @ 192.168.2.1
android @ 192.168.2.20

when I do a manual connection to 192.168.1.10 it does connect, but after a second or two the following error appears:
ReceiverError: the TCP communication to android (192.168.1.15) stopped working

Hi @vMarcelino,

I guess that the UDP packets aren’t reaching the Android device when you’re on a different subnet. When that happens, the Android app tries to reconnect, which closes the TCP connection.

A TCP socket is open on port 59100 for messaging purposes and the audio packets are sent from the server via UDP on port 59100.

So, could setting port forwarding on the net2 router be a solution?
(UDP 59100 forwarded to 192.168.2.20)

What do you think?