Docker multiple networks

Hi,

I have a container with a custom network which is running Xvnc server and I can connect to it using a vnc viewer client from Windows.
Then I attach another network of type ‘macvlan’ to container and then I cannot connect anymore with vnc client.
Also if I use host network for container I cannot connect to it with vnc viewer.

Host machine is running Ubuntu 18.04 LTS and container runs Ubuntu 16.04 LTS.
Docker engine used: version 18.06.0-ce, build 0ffa825

Any ideas why is behaving like that ?