Subnet Mask and Gateway set static but not uploaded correctly

Hello all,

I have a problem, when i set up static ip addresses of gateway and subnet, it compiles, but when i want to print them on serial monitor, output is different (i think for subnet is used default 255.255.255.0 - see picture)

if someone can explain to me why is that so i can learn, i would be thankful :slight_smile: or maybe some useful links

it is

static void begin(uint8_t *mac, IPAddress ip);
static void begin(uint8_t *mac, IPAddress ip, IPAddress dns);
static void begin(uint8_t *mac, IPAddress ip, IPAddress dns, IPAddress gateway);
static void begin(uint8_t *mac, IPAddress ip, IPAddress dns, IPAddress gateway, IPAddress subnet);

you set gateway to dns and mask to gateway

Good job Juraj ... what a little problem it was :smiley:
Thank you for your help