Unified code base for both IPv4 and IPv6

- Tested that it works over *only* IPv6 with Twisted 12.1
- Tested that it works with Twisted 8.0