Fall back to localhost if there's no private IP

Closes #56
Merge pull request #62 from Arcovion/ip-fix

Fall back to localhost if there's no private IP