In working through the SimpleWebServer.js from Derek Molloy  new book,

In working through the SimpleWebServer.js from @Derek_Molloy new book, when I run the simple node.js test it launches on the USB interface 192.168.7.2 yet I was connected to my BBB via WiFi with a 192.168.1.x ip address and the USB disconnected . Where does the nodejs runner pick up the ip address? from the ifconfig? A configuration in cloud9, or ??? The SimpleWebServer.js does not run on the WiFi address, but if I plug in the USB it does run off it’s interface.

I’d rather use the WiFi and a power supply. Ideally the launch process would detect the active interface.

Note: I’m using a young release
root@beaglebone:/var/lib/cloud9# uname -a
Linux beaglebone 3.8.13-bone68 #1 SMP Sat Nov 22 02:12:03 UTC 2014 armv7l GNU/Linux
root@beaglebone:/var/lib/cloud9# cat /etc/dogtag
BeagleBoard.org Debian Image 2014-12-31
root@beaglebone:/var/lib/cloud9#

The way https://github.com/derekmolloy/exploringBB/blob/master/chp02/SimpleWebServer.js is written, it simply listens to on all interfaces on port 5050. Documentation for the API he uses is at http://nodejs.org/api/http.html#http_server_listen_port_hostname_backlog_callback

Doh! It’s working now on both interfaces.

Doh, actually no it’s not. Can’t figure out how to add a screen shot to the comment or my original post. Started a new thread in the support section of the beaglebone community.