Use ToSocketAddr to allow the string form of a network address

Using the ToSocketAddr trait, we can eliminate the need to import
Ipv4Addr every time.
Merge pull request #222 from barosl/use-tosocketaddr

Use ToSocketAddr to allow the string form of a network address