fix bugs, allow connecting to non local hosts, offsets
Merge pull request #1 from smojtabai/offset_changes

fix bugs, allow connecting to non local hosts, offsets