In simple language, an IP address is a combination of numbers that uniquely identifies one’s system. It’s like a house has an address to get an mail, just like that your computer has an address to receive the data from the web. The word protocol refers to some set guidelines which need to be followed while browsing for global connectivity. The networking part of the Internet is defined by exact specifications (guidelines) for connecting on the Internet.
Example 1: In this example, we are going to use the ipify for SSL contained websites (having https protocol) to get the clients IP address.
Example 2: In this example, we are going to use the ipinfo to get the clients IP address in a alert box.
Note: Sometimes it will not work on Google Chrome and Internet Explorer for the default setting. Supported by Firefox and Edge.
- PHP | Determining Client IP Address
- How to get the MAC and IP address of a connected client in PHP?
- Client-Server Model
- HTML | address Tag
- HTML | DOM Address Object
- How to identify server IP address in PHP ?
- Address Calculation Sort using Hashing
- Perl | Extract IP Address from a String using Regex
- Server side and Client side Programming
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.