How to distribute modified traffic from a computer to a TV behind a router

Sometimes you want to watch YouTube on your TV without any lag. And if it's an Android TV (or an Android set-top box), then ByeDPIAndroid or PowerTunnel come to the rescue. But what if you have a Smart TV that's not on Android (like an LG or Samsung)?

The obvious solution here would be to modify the traffic on the router. But despite all the advantages, this option may not be suitable for various reasons:

  • not every router can be installed prohibit;

  • not every person has the necessary skills for this;

  • Not everyone has the desire to understand how it is done, etc.

Some routers also directly in the native firmware support connection via proxy or VPN. But not everyone has such equipment, and you still want to watch YouTube. But buying a new router is not really an option.

As a result, in the chain TV → router → PC, we have a computer at our disposal. That's what we'll deal with.

The article is aimed at ordinary people who do not have special technical skills; I will be looking at a computer running Windows OS.

Let me say right away that if you are satisfied with the option of distributing VPN from your computer to your TV, then this is done quite simply.

How to share VPN from your computer

This method will only work if you have a full-fledged VPN (and not a proxy with “VPN” in its name).

To share it with your TV:

  1. Click Start → type “View network connections” → Enter.

  2. Right-click on the network connection related to your VPN and select Properties.

  3. On the Access tab, check the box and select your Internet connection.

  4. On the TV, enter the IP address of your computer as the gateway.

To ensure that your TV has access to the Internet even when the VPN is disabled, go to the registry editor (Start → type regedit → Enter) and in the section HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters in the parameter IPEnableRouter set 1. After that, reboot the computer.

If you want your TV to receive traffic via GoodbyeDPI, you will need to install a proxy server. And if your TV supports proxy work, then this will be enough – just launch the proxy and enter the IP address of the computer and the server port as a proxy server in the TV settings.

But not every TV supports working through a proxy, so you will need something else here.

Developer GoodbyeDPI suggested a scheme with setting up a DNS server on your computer + proxy with sniffing. This is a working solution, and if it suits you, you can use it.

But there is also an alternative option without using a DNS server.

As in the previous case, we will need to install a proxy server. You can choose any, in this example I will use 3proxy.

Unzip the downloaded archive and in the bin64 folder create a text file config.txt with the following contents:

auth iponly
allow * 127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12 * *
log
maxconn 1000
socks -e192.168.0.102

In this case, 192.168.0.102 will be the IP address through which your proxy will send traffic to the router. You can change it according to the IP addressing of your router, it should just be a free IP address that is not used by other devices. In my case:

  • 192.168.0.1 is the router itself.

  • 192.168.0.100 is a TV.

  • 192.168.0.101 is a computer.

As you can see, at this stage the address 192.168.0.102 is free. We will assign it to an additional network connection on the computer.

If you are lucky and have 2 sockets on the network card (or 2 network cards), then you can skip the hassle and just connect the second socket with a cable to the router and assign this free address to the second connection. The same can be done if you have a Wi-Fi adapter.

If you only have one socket and no Wi-Fi adapter, you'll have to tinker a bit.

Why do you need a second connection at all?

The question is, why create a new IP address? Why not send traffic from the proxy to an existing connection (in my case, to 192.168.0.101)?

The thing is that we will intercept all traffic from the existing connection and send it to our proxy inside the computer. And if this traffic then gets into the same connection again, then a loop will be created, and as a result this traffic will not be able to get outside.

But Windows has the ability to assign 2 IP addresses to one connection at once. And then there should be no loop. It would seem that the job is done! But there is a nuance…

In order for the TV traffic to go through the computer, you need to register the computer's IP address as a gateway in the TV. To intercept the traffic and redirect it to the proxy, the connection must have redirection enabled. And it is enabled immediately for all IP addresses registered on this connection. Therefore, the traffic from the proxy that should have gone out will also be redirected… back to the proxy. And we will get a loop again.

So, an additional connection is still needed. Unfortunately, in Windows there is no way to simply create an additional connection for a network card that physically has only one slot. But you can make a virtual one (it only works in Windows 10 and 11, on the seven you can use the above-mentioned method with a DNS server).

It is done like this:

  1. Start → type “Turn features on or off” → Enter. In the window that opens, click the plus sign next to Hyper-V and check the boxes next to “Hyper-V Services” and “Hyper-V Management Tools”:

Enable Hyper-V

Enable Hyper-V

  1. Click OK and restart your computer.

  2. Start → type Hyper → Enter. In the window that opens, on the right, click “Virtual Switch Manager”:

    Launch the Virtual Switch Manager

    Launch the Virtual Switch Manager

It may take a couple of minutes to open the first time…

  1. When the new window has loaded, click “Create virtual switch”:

Create a virtual switch

Create a virtual switch

  1. Come up with a name for the new connection. In the drop-down menu, select your network card and check the box:

Name, network card, check mark

Name, network card, check mark

  1. After clicking OK, the system will warn you that the computer may lose access to the Internet for some time. Agree.

  2. Now in your “Network Connections” you should see a new connection with the same IP address that your physical interface used to have (in my case, 192.168.0.101). Change it manually to a new, free one (in my case, 192.168.0.102).

    My virtual connection is called vEthernet (Twin), instead of “Twin” there will be your name:

    New virtual connection

    New virtual connection

    There may also be a Default Switch, but we won't need it.

    How to change IP address
    1. Right-click on the network connection whose IP address you want to change. Select Properties.

    2. Double-click on the line “IP version 4”.

    3. Select “Use the following IP address” and enter the desired address.

  3. Also go to the properties of the main connection (which is old) and check the box “IP version 4”:

    Enable IP version 4

    Enable IP version 4

Now we can launch our proxy server. Open the folder with 3proxy, go to bin64, type cmd in the address bar of the explorer and press Enter:

Launch the command line

Launch the command line

In the command line that opens, run the command:

3proxy config.txt

If everything is fine, a line like this will appear:

240905153434.902 1080 00000 - 0.0.0.0:0 192.168.0.102:0 0 0 0 Accepting connections [8212/2864]

This means that the proxy server is running. Now we need to somehow direct all traffic there. The program will help us with this SSTap.

Install it, run it. Read the author's disclaimer and agree to take full responsibility. After that, click on the faded green plus sign next to the first drop-down list and select “Add a SOCKS5 proxy…”:

Adding SOCKS5 proxy

Adding SOCKS5 proxy

As Server IP enter 127.0.0.1, as port – 1080.

You can just put a tick right away

You can just put a tick right away

After saving, check the connection – click on the lightning icon. If everything is OK, both tests will be green:

Both TCP and UDP work

Both TCP and UDP work

After pressing the CONNECT button, all traffic on the computer will go through SSTap to your 3proxy, and from there – out through a virtual connection. The first time the connection may take some time…

All that remains is to make sure that our TV's traffic also goes through SSTap.

If you look again at “Network Connections”, there will be another new connection called SSTAP 1. If the traffic coming to our main interface is redirected there, it will end up in our proxy.

It is done like this:

  1. Right-click on the SSTAP 1 connection, select “Properties”, then the “Access” tab.

  2. There you put a check mark, select your main Internet connection from the drop-down list and click OK.

    Allow redirection from Ethernet to SSTAP 1

    Allow redirection from Ethernet to SSTAP 1

After clicking OK, the system will warn you that the IP address of the main connection will be changed to 192.168.137.1 – we don't need this, but we agree anyway (otherwise the redirection won't turn on). After that, go to the properties of the main connection and change the IP address to the one that was originally there:

I initially had 192.168.0.101 - that's what I entered

I initially had 192.168.0.101 – that's what I entered

Now you need to register the computer's IP address as a gateway on the TV (in my case – 192.168.0.101) and… you can watch YouTube!

Oh yeah, to make sure YouTube doesn't slow down, GoodbyeDPI needs to be running on your computer. To avoid having to run it manually all the time, you can make it a service – to do this, right-click on service_install_russia_blacklist.cmd in the program folder and select “Run as administrator”.

The same can be done with 3proxy – to do this, you need to run it as an administrator (in Windows 10, right-click on bin64 while holding down Shift → “Open command window”) with the following command:

3proxy --install config.txt

Just close it before doing this if you already have it running. If Windows SmartScreen has issued a warning, you should click “More details” and “Run anyway”.

In the SSTap settings, you can also set up autoloading when the computer starts and automatic connection to the proxy.

This way, when you turn on your computer, YouTube will automatically speed up on both your computer and your TV.

If you want the TV to work with SSTap disabled

When SSTap is disabled, the TV will lose Internet access. To prevent this from happening:

  1. Go to the registry editor (Start → type regedit → Enter) and in the section HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters in the parameter IPEnableRouter put 1.

  2. In the command line, run the command as administrator:
    netsh int ipv4 set int int="vEthernet (Twin)" forwarding=disabled

    Replace “Twin” with the name of your virtual connection.

  3. Restart your computer.

That's all! If something is not very clear, ask in the comments. Also, if someone managed to achieve the desired result in simpler ways, share in the comments. The more ways, the better.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *