Connect To Different Network If No Internet

Connect To Different Network If No Internet

This is one more article that’s written with the view of helping miners to resolve problems that may occur during a mining process. If you’re the one who often has problems with Internet connection, you’ll find the article useful. As a rule, those who know that their Internet connection may go down at any time take necessary measures to avoid losing money. Internet providers say that in order to restore the connection it’s enough to reset network adapter. However, this method doesn’t always help. We believe that it’s better to have several active Internet connections. Provided that you have them, you’ll prefer your mining rig to be able to connect to the other internet connection automatically.

Today, you’ll find out how the Windows Powershell script can help you with that. Actually, there isn’t much you’re required to do.

How to enable your mining rig to automatically connect to the other Internet connection you have

Below you’ll find the steps you need to go through in order to have everything working properly at any time of a day.

  1. Download the Windows Powershell script package.
  2. Make the necessary changes. All the changes you need to make are described in our article “An approach to automatically restart mining process in case it gets stopped”.
  3. The Powershell code you can see in the picture below is created so that to work with 2 different Wi-Fi networks.

How to enable your mining rig to automatically connect to the other Internet connection you have

  1. Before going further, you need to check that you modified the script according to the instructions provided in the “An approach to automatically restart mining process in case it gets stopped” and “An approach that allows you to enable email notification feature in case your rig goes down” articles. After that, there is only one thing left for you to do – change the names of the 1st and the 2nd network.

That’s it! Now you can start mining and not worry about the problems with the Internet connection that may occur.

In case the approach described above doesn’t work for you because you have 2 Ethernet connections (or 1 Ethernet connection and 1 Wi-Fi), keep reading the article. Below you’ll find information on the changes that should be made in each of the cases.

Instruction for those who need to make custom changes

How to modify the script in case you have 1 Ethernet connection and 1 Wi-Fi connection.

  1. Change the name of your Ethernet connection to “Network_1_Name”.
  2. Change the name of your Wi-Fi connection to “Network_2_Name”.
  3. Type in the command that you can see in the picture below. The command is to be typed in after “if ($Current_Network_Name -eq $Network_1_Name ) {”.

Instruction for those who need to make custom changes

  1. Replace the information provided after “netsh wlan connect name = $Network_2_Name } else {” in the 16th line with the following command that you can see in the picture provided:

How to modify the script in case you have 1 Ethernet connection and 1 Wi-Fi connection

How to modify the script in case you have 2 Ethernet connections

  1. Delete all the information provided in the script after “$Current_Network_Name = (get-netconnectionProle).Name” and type in the commands that you can see in the picture below.

How to modify the script in case you have 2 Ethernet connections

  1. Now, there is a need to change the name of your Ethernet adapter.
  2. In order to do find out the names of your Ethernet adapters, open control panel. Network and Internet → Network Connections → Change Adapter Settings. Have a look at the picture provided.

In order to do find out the names of your Ethernet adapters, open control panel

That’s it! We hope that now you know how to avoid any problems that have to do with your Internet connection.

1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 4.60 out of 5)
Loading...
Like this post? Please share to your friends: