AMI Manager logging out for no apparent reason

Hi!

I have the WEIRDEST of issues: a connected AMI manager logs out for no apparent reason. This means subsequent Asterisk events aren’t fed to the AMI manager.

However, this does NOT happen when I connect the AMI manager from within the same subnet as the Asterisk server.

Any ideas? I have manager.KeepAlive = true.

Kind regards,
Ulf
Sweden