-->
Page 1 of 1

How to set default TTL in IP packet

PostPosted: Tue Mar 21, 2017 10:14 pm
by Osm
Hi!
How can i set default TTL in IP packet?
i found parameter IP_DEFAULT_TTL in file "..esp8266\hardware\esp8266\2.3.0\tools\sdk\lwip\include\lwipopts.h"
but how can i rebuild library liblwip with this parameter? I assume it is my solution.

Re: How to set default TTL in IP packet

PostPosted: Tue Nov 01, 2022 3:21 am
by Askhento
I know it is very old question, but just to help someone out there, add this line at the top of your sketch to set your TTL to 65 (or any value you want)
```
#define IP_DEFAULT_TTL 65
```