Skip to content
Switch article
Using OKPROXY on WindowsUsing OKPROXY on LinuxHow to Change DNS Settings

Using OKPROXY on Windows

Prepare a computer that can run 24/7 as the encrypted proxy server. It must use 64-bit Windows 10 or Windows 11.

OKPROXY encrypts mining data before sending it to the pool over the internet, reducing the risk of the data being identified or disrupted while traveling across external networks. Mining machines connect to the computer running OKPROXY over a local area network (LAN). Make sure both are on a trusted LAN.

Run OKPROXY

  1. Download OKPROXY v2.4.2.
  2. Create an okproxy folder on the proxy server desktop and place okproxy.exe in it.
  3. Double-click okproxy.exe. A startup log file will appear in the okproxy folder.
  4. When OKPROXY starts successfully, its icon OKPROXY icon appears in the Windows system tray.

Click the OKPROXY icon to open its status panel.

OKPROXY 2.2.1 status panel
Illustration of the v2.2.1 interface.

Configure the pool address

After OKPROXY starts, enter the proxy pool address in the miner dashboard or mining software. Use this format:

stratum+tcp://proxy-server-IP:port

For example, if the proxy server IP is 192.168.152.128 and BTC uses port 2222, enter:

stratum+tcp://192.168.152.128:2222

Supported coins and ports:

CoinPort
LTC1111
BTC2222, 228, 3367
BCH2233
ETC4444, 7777 (E9 only)

Assign a static IP to the proxy server

To prevent the proxy server IP from changing after a restart or network reconnection, assign a static IP to the computer running OKPROXY:

Before setting a static IP

Make sure the IP address is not already in use by another device. We recommend using the IP address currently assigned automatically to avoid connection failures caused by an IP address conflict.

  1. Press Win + R, enter ncpa.cpl, and press Enter to open Network Connections.
  2. Right-click the active connection and select Status > Details. Record the IPv4 Address, IPv4 Subnet Mask, IPv4 Default Gateway, and IPv4 DNS Server.
  3. Return to Network Connections, right-click Ethernet, and select Properties > Internet Protocol Version 4 (TCP/IPv4) > Properties.
  4. Select Use the following IP address, then enter the IPv4 address, subnet mask, and default gateway you recorded.
  5. Select Use the following DNS server addresses. Enter the DNS values you recorded, or use 223.5.5.5 and 114.114.114.114.

    Internet Protocol Version 4 properties with the static IP and DNS values entered before clicking OK
    Figure: Example static IP and DNS settings. The values shown are for reference only. Enter the current network settings for your computer, and verify them before clicking “OK”.

  6. Click OK. Return to Status > Details and confirm that DHCP Enabled shows No.

After changing the router or network

If the computer cannot connect to the internet, first select Obtain an IP address automatically. Once the connection is restored, set a static IP again.

If the proxy server IP changes, update the pool address configured on every affected miner.

Network requirement

Make sure the miners and the computer running OKPROXY are on the same LAN and connected to the same primary router.

Turn off Windows Firewall

Turning off Windows Firewall prevents it from blocking OKPROXY. If OKPROXY is blocked, miners may fail to connect, show no hashrate, or be unable to reach the proxy ports.

  1. Press Win + R, enter firewall.cpl, and press Enter to open Windows Defender Firewall.
  2. Click Turn Windows Defender Firewall on or off. Under both Private network settings and Public network settings, select Turn off Windows Defender Firewall.
  3. Click OK. If Windows asks for confirmation, click Yes.
  4. Return to the Windows Defender Firewall page and confirm that the firewall is off for both private and public networks.

Disable sleep and hibernation

  1. Press Win + R, enter ms-settings:powersleep, and press Enter to open Power & sleep settings.
  2. Under Sleep or Screen and sleep, set When plugged in, put my device to sleep after to Never. If a battery-powered option is shown, set it to Never as well.
  3. Press Win + R, enter control powercfg.cpl, and press Enter. Next to the active power plan, click Change plan settings > Change advanced power settings.
  4. Expand Hard disk > Turn off hard disk after and set the value to 0 (Never). If both battery and plugged-in values are shown, set both to 0.
  5. Expand Sleep > Hibernate after and set the value to 0 (Never). If both battery and plugged-in values are shown, set both to 0.
  6. Click Apply, then OK.

Start OKPROXY at sign-in

  1. Open the okproxy folder on the desktop.
  2. Right-click okproxy.exe and select Create shortcut.
  3. Press Win + R, enter shell:startup, and press Enter to open the Startup folder.
  4. Copy the okproxy.exe shortcut into the Startup folder.