Check out example codes for "arduino ip to string". It will help you in understanding the concepts better.

Code Example 1

//IP addresses are stored as an array, you can just say

IPAddress my_IPAddress(162.198.2.3);
Serial.println(my_IPAddress[1]);

//Output
--------------------------------------------------------
 > 198

Learn ReactJs, React Native from akashmittal.com