Fix ip allocation
Merge pull request #205 from axsh/fix-ip-allocation

Fix ip allocation