# Differences

This shows you the differences between two versions of the page.

 en:games:radmin_vpn [2020-01-01-16-21]7saturn [Network Card Metric] en:games:radmin_vpn [2020-01-17-11-43] (current)7saturn [Script for Setting the Network Card Metric automatically] Both sides previous revision Previous revision 2020-01-17-11-43 7saturn [Script for Setting the Network Card Metric automatically] 2020-01-17-11-42 7saturn [Script for Setting the Network Card Metric automatically] 2020-01-17-11-41 7saturn [Script for Setting the Network Card Metric automatically] 2020-01-17-11-40 7saturn [Network Card Metric] 2020-01-01-16-21 7saturn [Network Card Metric] 2020-01-01-16-16 7saturn 2019-03-08-23-04 7saturn 2019-03-08-23-03 7saturn created Next revision Previous revision 2020-01-17-11-43 7saturn [Script for Setting the Network Card Metric automatically] 2020-01-17-11-42 7saturn [Script for Setting the Network Card Metric automatically] 2020-01-17-11-41 7saturn [Script for Setting the Network Card Metric automatically] 2020-01-17-11-40 7saturn [Network Card Metric] 2020-01-01-16-21 7saturn [Network Card Metric] 2020-01-01-16-16 7saturn 2019-03-08-23-04 7saturn 2019-03-08-23-03 7saturn created Line 9: Line 9: So if a game only uses the first network card, it uses the network card with the lowest metric value set for any network card's TCP/IP protocol configuration of your system. You may set this manually at any time. Radmin VPN also adds a new network card, which serves to direct traffic through the VPN. It is of course also part of this hierarchy. However, it sets this network cards metric to 1 after every system start, which usually makes it first network card, even before your local network. So if a game only uses the first network card, it uses the network card with the lowest metric value set for any network card's TCP/IP protocol configuration of your system. You may set this manually at any time. Radmin VPN also adds a new network card, which serves to direct traffic through the VPN. It is of course also part of this hierarchy. However, it sets this network cards metric to 1 after every system start, which usually makes it first network card, even before your local network. - In many cases this can lead to problematic behavior, such as games all of a sudden not finding any servers hosted in the own LAN or local computers not being found for SMB access automatically any more. In order to omit this, it mayn help to reduce the metric to a lower priority/​higher value. As this will be reset after a reboot automatically to value 1, it usually is sufficient to set the value to something like 20, to get access to the local network again and restart the system, once this is not desired any more. + In many cases this can lead to problematic behavior, such as games all of a sudden not finding any servers hosted in the own LAN or local computers not being found for SMB access automatically any more. In order to omit this, it may help to reduce the metric to a lower priority/​higher value. As this will be reset after a reboot automatically to value 1, it usually is sufficient to set the value to something like 20, to get access to the local network again and restart the system, once this is not desired any more. ===== Script for Setting the Network Card Metric automatically ===== ===== Script for Setting the Network Card Metric automatically ===== You can create a script, that automatically sets the metric of Radmin'​s VPN adapter to 20. Follow these steps: You can create a script, that automatically sets the metric of Radmin'​s VPN adapter to 20. Follow these steps: - Create a new powershell script with a name like ''​set_vpn_metric.ps1''​. - Create a new powershell script with a name like ''​set_vpn_metric.ps1''​. - - Edit it and enter the following command into it: ''​Get-NetAdapter | Where-Object -FilterScript {$_.InterfaceAlias -Eq "​Radmin VPN"} | Set-NetIPInterface -InterfaceMetric 20''​. + - Edit it and enter the following command into it: ''​Get-NetAdapter | Where-Object -FilterScript {$_.InterfaceAlias -Eq <​nowiki>​"​Radmin VPN"​} | Set-NetIPInterface -InterfaceMetric 20''​. - - Create a link to that script with the path ''​<​nowiki>​C:​\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -f "​drive:​\path\to\set_vpn_metric.ps1"<​\nowiki>'',​ with ''​drive:​\path\to\set_vpn_metric.ps1''​ being the actual full file path to the newly created script. Adapt it to your own file's location. + - Create a link to that script with the path ''​C:​\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -f <​nowiki>​"​drive:​\path\to\set_vpn_metric.ps1"<​/nowiki>'',​ with ''​drive:​\path\to\set_vpn_metric.ps1''​ being the actual full file path to the newly created script. Adapt it to your own file's location. - Open properties of the newly created link and click on **Advanced** and select **Run as Administrator** (this is not available if you set the link to point directly to the script only). - Open properties of the newly created link and click on **Advanced** and select **Run as Administrator** (this is not available if you set the link to point directly to the script only). - Enter ''​powershell''​ into the start menu and run it with administrator privileges(!). - Enter ''​powershell''​ into the start menu and run it with administrator privileges(!).