How can I get IP of a specific hop for traceroute in python
问题 addr = socket.gethostbyname('dalitstan.org') target = [addr] result, unans = traceroute(target,maxttl=32) I am doing this and getting the below output. Is there some way here to get the IP of specific hop in a variable. And also why some hop number are missing in the traceroute result? Begin emission: Finished to send 32 packets. ************************* Received 25 packets, got 25 answers, remaining 7 packets 185.53.178.6:tcp80 1 192.168.43.1 11 3 10.71.83.18 11 4 172.16.26.245 11 5 172.26