user51102: 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)? 

user4143: 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]);


51102: <p>So if I have an IP address <code>IP Address: 192.64.5.1</code>, is it somehow possible to change a specific byte of that IP to like <code>IP Address: 192.64.**6**.1</code></p>

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

<p>But what if I receive the <code>IP Address: 192.64.5.1</code> 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)? </p>
 4143: <p>You can do it all with the <code>IPAddress</code> class.</p>

<p>For instance: create an IP address from a string:</p>

<pre><code>IPAddress myAddr(myString);
</code></pre>

<p>Create a new IP address with one byte changed:</p>

<pre><code>IPAddress myNewAddr(myAddr[0], myAddr[1], myAddr[2] + 1, myAddr[3]);
</code></pre>
