VNC with multiple networks on server (it binds to the wrong address)
I have a server running Linux Mint with two network devices, each one with its own IP address and its own network. wlan1 bound to 192.168.1.151 is connected to the router and the Internet and eth0 bound to 192.168.2.2 is connected to another computer in a local network.
Then I want to set up a VNC server on this machine to access it from an external network but when I start it it binds to IP 192.168.2.2. So I can connect to the VNC server only from the local network and not from the Internet.
The question is: can I tell the VNC server to bind to the other IP so I can access it from an external computer?
I hope I have exposed the problem clearly enough.