I realize that this topic is about 2 months old, but I’m going to add some possible troubleshooting steps for anyone who may run into this problem. Hopefully OP already has this resolved.
@Jeff while on RasPi terminal can you try to execute this command ping localhost? you should see output similar to this:
$ ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.253 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.268 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.257 ms
...
...
as you can see hostname localhost resolves to ip address 127.0.0.1 which is very common. you can also try to enter http://127.0.0.1:8080 in your browser.
if the above works and after node serveronly is running, can you please try to execute following command curl -I http://localhost:8080? your output should be similar to this:
$ curl -I http://localhost:8080
HTTP/1.1 200 OK
X-Powered-By: Express
Accept-Ranges: bytes
Cache-Control: public, max-age=0
Last-Modified: Wed, 21 Dec 2016 06:49:47 GMT
ETag: W/"8da-15920249be6"
Content-Type: text/html; charset=UTF-8
Content-Length: 2266
Date: Sun, 15 Jan 2017 23:09:37 GMT
Connection: keep-alive
if it’s not double check your config.js to make sure your server is running on port 8080