Reputation: 21
I have a sample Smart TV app built on Samsung Smart TV SDK 4.5 The app is written in Javascript, HTML and CSS. I am able to run the app on Samsung Smart TV emulator.
I want to debug the same Smart app using web inspector. In web inspector, the entire HTML DOM of the app can be seen in Google chrome window.
When I am trying to open the app in web inspector, I am getting the following error.
automatic connection failed. Failed to connect to remote server of web inspector.
Please run chrome browser manually and connect the http://localhost:8888
I have also installed the apache 2.2 server.
When I try to run "localhost:8888" in google chrome, it gives "page not found error".
Please help if anyone knows the solution for this
Upvotes: 1
Views: 3817
Reputation: 111
I had issues with this as well, but ultimately found that installing the latest VirtualBox SmartTV VM, triple checking the emulator connections within Edge, and adding 'Chrome Dev Tools' debugging feature as a new item through 'Preferences' >> 'Install/Update' >> 'Available Software Sites' did the trick.
For a detailed explanation of that last bit, check out this video:
https://www.youtube.com/watch?v=_uzSw_fb7NQ
Upvotes: 0
Reputation: 329
The web inspector is a web server running inside the emulator VM so if you're trying to access it from the host OS, you'll need to change the network config. In VirtualBox, the network uses NAT with a subnet 10.0.2.x by default. This prevents incoming connections (ie. host to guest) but allows outgoing (ie. guest to host).
" connecting to a web server running in the Guest. This is not (normally) possible using NAT mode as there is no route into the Guest OS" - networking in VirtualBox
This is a crude fix but hopefully it'll spur someone else to find something better.
On the browser, go to http://x.x.x.x:8888 where x.x.x.x is the IP from step 4. It will still say can't load, but the link will change to something longer. Replace localhost with the IP and it should load now.
Upvotes: 5