debugging for Roku Part 2

 
 

internet sharing

The easiest way to connect to the Roku for Charles is by using a Mac. For this method, we will also need a USB to ethernet adapter and use that to connect the Mac to our router with the VPN on it.

Select System Preferences.

Select Internet Sharing.

Set to “Share your connection from” USB 10/100 LAN (or USB 10/100 LAN2 if that’s what appears by default).

Set “To computers using” as Wi-Fi.

Then click on Wi-Fi Options and configure a username and password (ex. SSID = user, Password = 123456).


Terminal

We will also need a custom mitm.pf config file and make sure it’s showing “bridge100” in the file.

Open the Terminal app on your Macbook.

Type in ifconfig.

Type in “sudo cp ~/Downloads/mitm.pf.conf /etc/.” (exactly as it appears between the quotes, including the period at the end).

Type in “sudo pfctl -ef /etc/mitm.pf.conf”.

**You will at some points in this have to enter the password for your Macbook into Terminal.


charles

Go back to the Internet Sharing now and click it OFF.

Reshare the connection (click it ON).

Launch Charles.

On your Roku now, go to the network settings and find the network you just set up (ex. user) and connect to it.

You will see a prompt to allow the Roku connection in Charles so click Allow.

Launch your app and you should see the Roku app traffic in Charles now.