Is there a way to have a VPN connection for a Torrent client only (on Windows 10)?

I use CyberGhost as my VPN provider and they provide an easy way to connect to one of their VPN servers. Before any torrenting, I would connect to a VPN server (because I don’t like my ISP snooping around) which is easy enough however this would mean my whole internet connection on my computer would connect to the VPN.
What I would like to know is, is there a way for a Torrent client only to connect to the VPN leaving the rest of my computer’s internet access normal (e.g. so I can continue to play online games without lag due to the VPN)?

Any help would be appreciated, whether it’s a torrent client that could do this or another way. Thanks.

I’m not familiar with CyberGhost, but there’s an excellent chance that you can have your VPN not do all traffic but just a specific port and funnel your torrent traffic through a specific port.

NordVPN has proxy servers for torrent clients

For Win10, maybe something like this:

I haven’t tried it, since I have Windows 7. Let me know if it works.

In your torrent client, you’ll need to ensure it’s bound to the VPN’s internal IP address (usually 10.x.x.x)

You can test by using any of the “What’s my IP” sites in your browser, and http://ipmagnet.services.cbcdn.com to see the IP address used in your torrent client.

For Windows 7, I have a batch file:

VPN-BindOnly.bat

@set GATEWAY=192.168.1.1
route add 0.0.0.0 mask 192.0.0.0 %GATEWAY%
route add 64.0.0.0 mask 192.0.0.0 %GATEWAY%
route add 128.0.0.0 mask 192.0.0.0 %GATEWAY%
route add 192.0.0.0 mask 192.0.0.0 %GATEWAY%

VPN-Everywhere.bat

@set GATEWAY=192.168.1.1
route delete 0.0.0.0 mask 192.0.0.0 %GATEWAY%
route delete 64.0.0.0 mask 192.0.0.0 %GATEWAY%
route delete 128.0.0.0 mask 192.0.0.0 %GATEWAY%
route delete 192.0.0.0 mask 192.0.0.0 %GATEWAY%

Unless that’s your gateway, you’d also need to change GATEWAY to your router’s gateway (which you can grab from the results of an ipconfig command)

Ahh so this would be a feature on the VPN side and not the torrent client side? How do I know which port my torrent client is using?

CyberGhost also has torrent servers but my question is more about whether I can set it up so only my torrent client is connected to the VPN. Leaving the connections on the rest of my computer free of the VPN connection.

I should also note that some VPNs try really hard to limit traffic to only connection (which makes sense). For example, PIA as a VPN Killswitch that appears to break split tunneling, and I have it turned off. Sometimes a VPN will overwrite the DNS server addresses too, which may or may not cause problems. I haven’t ran into a VPN that is friendly towards split tunneling, but most seem to work with a little bit of hacking.

This is something you would need to configure on both ends. In the settings on your client you’ll need to look for settings for proxy/port forwarding. Same in the VPN client.

And which port would I choose if both had the option to port forward? Do I just choose 4 random numbers and ensure that’s used for both the torrent client and the VPN client?