Return first adress when multiple are found

Fix #155
Merge pull request #156 from ggiamarchi/fix_multiple_ips

Return first address when multiple are found