Open Dementore711 opened 5 years ago
But if I connect through gnirehtet and try to cast my screen, I end up with a black screen on the TV.
I think that Miracast use WiFi direct to cast your screen.
What do you want to do:
pass the miracast stream through gnirehtet so that the computer connects to the TV? → will not work
Not the computer but my android phone. I was hoping to access amazon prime through reverse tethering in my phone and cast that to my TV.
(PS: I dont have wifi on my PC)
OK, then the problem is that miracast try to pass through gnirehtet, and you have to redirect only routes which are not for your miracast-wifidirect connection, using gnirehtet run -r ROUTE
.
Enable miracast (without gnirehtet), then execute:
adb shell netcfg
or
adb shell ip a
(depending on your device).
It will help to define the routes to redirect.
This is the output from
adb shell ip a
I cant make heads or tails from it. Which routes should I redirect?
Sorry if I sound like a noob and for wasting your time.
@Dementore711 So I guess the network for your wifi direct connection (used by multicast) is 192.168.179.0/24
.
Unfortunately, we can't declare "we want all routes to go through gnirehtet, except this one" on the VPN, so we have to enable all other routes (see stackoverflow).
If you just want to redirect amazon prime, maybe you could just add one route for your DNS and one for the address/network of amazon prime.
The syntax in gnirehtet is:
./gnirehtet run -r 8.8.8.8/1,otherroute/otherprefix
Ok thanks for your help. I'm out of town for a few days. I'll check it when I get back.
I use miracast to screencast to my non android TV. But if I connect through gnirehtet and try to cast my screen, I end up with a black screen on the TV. Is there any way to use miracast with gnirehtet?
(PS: a quick google search shows that the vpn would have to have split tunneling feature)
Thanks in advance.