Skip to content

Tag: ip-address

Getting City from IP Address range

I have an IP address. For example, 192.168.2.10 Also I have a dictionary: Question: How should I find the city from my IP address and use this dictionary spending less time (time complexity) as possible? Answer The “proper answer” if you want the best complexity for arbitrarily large data sets is …

Finding a public facing IP address in Python?

How can I find the public facing IP for my net work in Python? Answer This will fetch your remote IP address If you don’t want to rely on someone else, then just upload something like this PHP script: and change the URL in the Python or if you prefer ASP: Note: I don’t know ASP, but I figured it