I need to find TTL from Python and I found several codes but I don't know why TTL output in python different than TTL when I used ping www.google.com?

for example in python TTL = 45 or 226 ...but in command line terminal ping www.google.com TTL =118.

Do you know any python code that I obtain TTL which is matched with TTL in the command line?

More Ehsan Nowroozi's questions See All
Similar questions and discussions