Add third hrIp
Handle situation where there is no internet
Export funcitonality of index.js