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.
- How to get the MAC and IP address of a connected client in PHP?
- PHP | Determining Client IP Address
- How to Get Local IP Address of System using PHP ?
- Server side and Client side Programming
- Client-Server Model
- How to set alternate content for users that do not support client-side scripts ?
- HTTP status codes | Client Error Responses
- How to create a client-side image-map in HTML5 ?
- Address Calculation Sort using Hashing
- Perl | Extract IP Address from a String using Regex
- How to check if email address is already in use or not using express-validator in Node.js ?
- HTML | address Tag
- HTML | DOM Address Object
- How to identify server IP address in PHP ?
- How to instantiate Struct Pointer Address Operator in Golang?
- Node.js socket.address() Method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. 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.