Access remote computer after activate VPN

How can I remotely access to a computer with teamviewer when the remote computer has activate VPN?

Is there any way? I have accecc to remote computer, but the remote computer activate a VPN and then I lost the activate of the connection after few minutes, and I can not connect again.

Thanks.