Connecting weinre in ubuntu

129 views
Skip to first unread message

Matt Parkins

unread,
Mar 8, 2013, 12:39:31 PM3/8/13
to wei...@googlegroups.com
I've installed weinre as the docs require on my ubuntu laptop and running it:

weinre --boundhost -all-

The same laptop also runs the apache server and I've inserted the required .js code into the footer of my page:


However, this script fails to load.  If I swap the IP address for localhost it works fine, yet the IP address is correct.  It's almost as if the port is closed (or the program not listening to the port), and when I look at the ports being listened to, 8080 doesn't appear:

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 localhost:mysql         *:*                     LISTEN      -               
tcp        0      0 localhost:11211         *:*                     LISTEN      -               
tcp        0      0 localhost:5037          *:*                     LISTEN      8339/adb        
tcp        0      0 localhost:http-alt      *:*                     LISTEN      11863/node      
tcp        0      0 *:http                  *:*                     LISTEN      -               
tcp        0      0 nermel:domain           *:*                     LISTEN      -               
tcp        0      0 localhost:ipp           *:*                     LISTEN      -               
tcp        0      0 *:smtp                  *:*                     LISTEN      -               
tcp        0      0 *:17500                 *:*                     LISTEN      2946/dropbox    
tcp        0      0 localhost:dict          *:*                     LISTEN      -   

If, on the localhost machine, I attempt to access http://192.168.5.7:8080 it fails with a connection refused.  But swap it for http://localhost:8080 and the debug server page pops up.  So it really sounds like a firewall issue of some description, but I thought ubuntu opened up ports that were being listened to anyway?

Secondly, should I be running the apache2 server - could it be interfering?  or should I be copying my website files to the weinre static web directory? In this case it is usr/local/lib/node_modules/weinre/web

help !

Matt Parkins

unread,
Mar 8, 2013, 12:40:56 PM3/8/13
to wei...@googlegroups.com
*Naturally I have to use the IP address to access the server from my mobile device - I can't put localhost in there.

Matt Parkins

unread,
Mar 8, 2013, 3:53:41 PM3/8/13
to wei...@googlegroups.com

Found the problem.  I was running weinre with the command:

weinre --boundhost -all-

...but boundHost should have a capital H in it so it was silently ignoring the command.


-m@


--
--
From the weinre Google Group -- http://groups.google.com/group/weinre
 
---
You received this message because you are subscribed to a topic in the Google Groups "weinre" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weinre/QVkEarXUlOU/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to weinre+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages