Skip to content

Instantly share code, notes, and snippets.

@farneser
Last active September 15, 2025 20:06
Show Gist options
  • Select an option

  • Save farneser/3acdc050b59235e95c96802747b02113 to your computer and use it in GitHub Desktop.

Select an option

Save farneser/3acdc050b59235e95c96802747b02113 to your computer and use it in GitHub Desktop.
How to change TTL on windows 10/11 in on command

Change windows 10/11 TTL in one command and reboot

netsh int ipv4 set glob defaultcurhoplimit=65

Check TTL value

ping 1.1.1.1

Use 1.1.1.1 or any IP

@ejrydhfs
Copy link

ejrydhfs commented Mar 14, 2025

It doesn't seem to be permanent in windows 11

Edit to make it permanent make sure you run the command in PowerShell as an administrator.

@farneser
Copy link
Author

It doesn't seem to be permanent in windows 11

Edit to make it permanent make sure you run the command in PowerShell as an administrator.

After what period does it reset TTL or what is the trigger for this?

@Zora-Z0
Copy link

Zora-Z0 commented Apr 3, 2025

I am not sure if its from a windows update but as of 04/03/25 this is not working in Win11or Win10. Not sure if others are experiencing this as well. I also ran PowerShell and CMD with admin rights and ttl still does not change.

@Vaviloff
Copy link

Vaviloff commented Sep 5, 2025

Indeed it didn't work today on Windows 11

Actually it worked, but I've had to set the custom TTL for IPv6 as well

netsh int ipv6 set glob defaultcurhoplimit=65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment