Change one specific byte of an IP address
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]);