Fix IP command
Moved command ending to caller
Merge pull request #23 from tlunter/fix_ip_command

Fix IP command