calibre-debug -c "import socket; print socket.getaddrinfo('127.0.0.1', 8080, socket.AF_UNSPEC, socket.SOCK_STREAM)"