Skip to content

Instantly share code, notes, and snippets.

@farneser
Last active June 8, 2025 16:39
Show Gist options
  • Save farneser/3acdc050b59235e95c96802747b02113 to your computer and use it in GitHub Desktop.
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.

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