DEV Community

loading...
Cover image for How to Get IP Address Information Using Python [2021]

How to Get IP Address Information Using Python [2021]

misterjay profile image MisterJay ・1 min read

An IP Address is a numeric label used by the Internet Series Provider (ISP) to identify you when you surf the Internet. It serves two main functions, host or network interface identification and location addressing. The IPv4 address consists of 32 bits. However, due to the rapid spread of the Internet, the 128-bit IPv6 address system was introduced.

The IP address obtained using the socket module is a static address. When you retrieve data over the Internet, it is obtained through the ISP. But that address is not open to the Internet. This is because when a request is made to provide a web page to the ISP, they will retrieve it from the Internet and deliver it to you. It will then give you another public address. It’s a dynamic address. Websites identify you by that address. Location cannot be obtained correctly from this Dynamic IP Address. It then shows you the approximate location of your ISP. In this section, we will introduce you to a new Third Party API. But there are a number of things you need to keep in mind. No one can hide on the internet. No matter how many tricks you use like VPN, Proxy Chain, it can only delay finding out about you. Because all these systems were made by man. Therefore, do not act in a way that harms anyone’s privacy. Read More

Discussion (0)

Forem Open with the Forem app