Question / Help [kinda solved] Force OBS Studio to use a specific Gateway (Windows 10)

Lenwe

New Member
Hi

I have a LAN with 2 routers:
  • DSL router : perfect for gaming (20 ms ping) but terrible for streaming (<1 Mbit/s in upload)
  • 4G router : good for streaming (>10 MBit/s in upload) but bad for gaming (200 ms ping)
The 4G router is actually an old Windows 7 laptop with my iPhone attached to it in USB with Internet connection sharing enabled. Attaching my iPhone to my streaming PC does not work because the 4G signal is not strong enough there so I have to use a laptop as router in another room where I have a very good signal.

My streaming PC has only one Ethernet network card.

How can I configure my setup to force OBS to use the 4G gateway instead of the default DSL gateway ?

EDIT : I finally found a working setup (Setup 3) but for a reason I ignore, OBS sometimes fails to connect to Twitch but it works fine since it's started.

Here are the setups I already tried. I'm using Twitch.tv at 4Mbit/s and the new network code in low latency mode.

Setup 1 (DSL only)
  • DSL router : 192.168.0.254
  • 4G router : 192.168.1.254
  • PC Ethernet card : 192.168.0.1 (subnet 255.255.255.0) + gateway 192.168.0.254
  • OBS set to use interface [Ethernet] 192.168.0.1
Result :
  • [OK] My PC uses the DSL gateway as default.
  • [Fail] OBS connects to Twitch but drops almost all frames.

Setup 2 (4G only)
  • DSL router : 192.168.0.254
  • 4G router : 192.168.1.254
  • PC Ethernet card : 192.168.1.1 (subnet 255.255.255.0) + gateway 192.168.1.254
  • OBS set to use interface [Ethernet] 192.168.1.1
Result :
  • [Fail] My PC uses the 4G gateway as default.
  • [OK] OBS connects to Twitch instantly, no frame drop.

Setup 3 (DSL and 4G on the same network card) WORKS !
  • DSL router : 192.168.0.254
  • 4G router : 192.168.1.254
  • PC Ethernet card : 192.168.0.1 and 192.168.1.1 (subnet 255.255.255.0) + gateways 192.168.0.254 (metric 100) and 192.168.1.254 (metric 200)
  • OBS set to use interface [Ethernet] 192.168.1.1
Result :
  • [OK] My PC uses the DSL gateway as default.
  • [almost OK] OBS fails to connect to Twitch server after a few seconds but finally succeeds after a few attempts
 
Last edited:

Lenwe

New Member
Well, I tried pressing "Start streaming" in Setup 3 a few more times without changing anything ... and it finally worked as expected !

I stopped the streaming and started it again, and worked fine, smooth and sharp 1080p60, no frame drop.

I restarted OBS and pressed "Start streaming" again. The first and second times I had the error but it worked on the third time. That's weird :)
 
Top