Change one specific byte of an IP address So if I have an IP address IP Address: 192.64.5.1, is it somehow possible to change a specific byte of that IP to like IP Address: 192.64.**6**.1

My idea is to change the IP Address into variables IP Address: a.b.c.d
Now I could say a= 192; b= 64; c= 5 + 1; d= 1

But what if I receive the IP Address: 192.64.5.1 as a String. Is it somehow possible to split it up into 4 parts that I can each individually assign to an integer (a, b, c or d)?
You can do it all with the IPAddress class.

For instance: create an IP address from a string:

IPAddress myAddr(myString);


Create a new IP address with one byte changed:

IPAddress myNewAddr(myAddr[0], myAddr[1], myAddr[2] + 1, myAddr[3]);