I figured out the problem.

You can't use private IP classes (local IP addresses).

Although I tried using my public IP it wasn't working because of a glitch with the router provided by my ISP. I can't access my public IP from my own network. It's a weird glitch.

So, after I figured that out it was an easy problem to fix. I'm using a web host account, and now I can access and view the app from my TV and the Emulator.