added ip as argument and catching exception on refused connection
Merge branch 'master' of github.com:mattvenn/raspi-buggy