user15631: Newbie question:
I need to pass the last byte of a local IP as a parameter.
Eg.: when Ethernet.localIP() returns 192.168.0.100,
I need to extract the 100 and put it in a char array or string.
Anyone any ideas? Thx!

user4143: localIP() returns an IPAddress object.  That object has an operator for [] allowing you to access the individual parts of it.
IPAddress ip = Ethernet.localIP();
Serial.println(ip[3]);


15631: <p>Newbie question:</p>

<p>I need to pass the last byte of a local IP as a parameter.
Eg.: when Ethernet.localIP() returns 192.168.0.100,
I need to extract the 100 and put it in a char array or string.</p>

<p>Anyone any ideas? Thx!</p>
 4143: <p><code>localIP()</code> returns an <code>IPAddress</code> object.  That object has an operator for <code>[]</code> allowing you to access the individual parts of it.</p>

<pre><code>IPAddress ip = Ethernet.localIP();
Serial.println(ip[3]);
</code></pre>
