inspector mode doesn’t work when connected to mobile network

Bug #1583091 reported by Olivier Tilloy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
webbrowser-app (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

I can remotely inspect a web page on my arale or frieza devices, from my laptop on the same local network (launching webbrowser-app with the "--inspector" switch, which by default listens on port 9221). However the same doesn’t work on my krillin:

osomon@bribon:~$ nmap 192.168.1.79 -p 9221

Starting Nmap 7.01 ( https://nmap.org ) at 2016-05-18 12:05 CEST
Nmap scan report for 192.168.1.79
Host is up (0.080s latency).
PORT STATE SERVICE
9221/tcp closed unknown

Nmap done: 1 IP address (1 host up) scanned in 0.16 seconds

All devices tested are running the latest rc-proposed image. I’m not seeing any significant difference in the app’s log between devices.

Revision history for this message
Olivier Tilloy (osomon) wrote :

On krillin, the code that sets the IP address for devtools incorrectly gets the address of the ccmni0 device, instead of that of wlan0. So it’s listening on e.g. 10.226.61.16:9221 instead of 192.168.1.79:9221, which explains the issue.

Revision history for this message
Olivier Tilloy (osomon) wrote :
Changed in webbrowser-app (Ubuntu):
status: New → Confirmed
assignee: nobody → Olivier Tilloy (osomon)
importance: Undecided → Medium
Revision history for this message
Olivier Tilloy (osomon) wrote :

And the same code works on arale because arale only lists lo and wlan0 as network devices.

Revision history for this message
Olivier Tilloy (osomon) wrote :

And unsurprisingly if I switch on airplane mode (to disable mobile data) and then switch on wifi, inspector mode works. So this is not device-specific.

Revision history for this message
Olivier Tilloy (osomon) wrote :

(it just happened to work ootb with my arale and frieza because I didn’t put any SIM card in them)

summary: - inspector does not open port on krillin
+ inspector mode doesn’t work when connected to mobile network
Changed in webbrowser-app (Ubuntu):
assignee: Olivier Tilloy (osomon) → nobody
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.