There's several places, but because it uses socket.AF_INET, it requires the client to have an ipv4 connection. It would be great if these were able to work in ipv6 environments that don't have an ipv4 external access.
Here's some places i found.
https://github.com/secynic/ipwhois/blob/master/ipwhois/net.py#L304
https://github.com/secynic/ipwhois/blob/master/ipwhois/net.py#L438
https://github.com/secynic/ipwhois/blob/master/ipwhois/net.py#L566