support IPv6 (fate #316261)
improve implementation and usage of GetIpAndPort
improve ruby code
Merge pull request #3 from gabi2/master

support IPv6 (fate #316261)