Check out example codes for "my ip address". It will help you in understanding the concepts better.

Code Example 1

curl ipinfo.io

Code Example 2

#Windows (cmd)
ipconfig

Code Example 3

shhh... That's a secret

Code Example 4

my ip address

Code Example 5

Other tip - If someone tells you their ip then please educate them

Code Example 6

Tip - Don't tell your public ip to anyone.

Learn ReactJs, React Native from akashmittal.com