uses getPeer instead of getHost to get client IP

this closes #49