-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
retrieve actual IP address via dns #15
Comments
Hi @gwalarn, you're right about this, moreover I just tried the command you gave, it fails on a "connection timed out". anyway thanks for the tip, I'll try to investigate. Cheers, |
Hi, Cheers |
Something like that ?
|
Thanks for the programming example, I never program in python but when i do a comparison of public_ip (result of resolver.query('myip.opendns.com')[0] and a string containing my IP like this: current_ip_address = "1.1.1.1" # remplace 1.1.1.1 with my real IP the result is "KO" Are the variable typed in python? PS: If we prefer use google than opendns our public IP can be obtain with this dns request: |
Hi, My updates in adapter.py :
and in gandyn.py line 141 :
Best regards |
This is what I currently use : https://gist.github.com/tintamarre/067fbf48bee4081fc46348d11f10625a I got Public IP from this command :
|
We can retriev our actual IP via:
dig +short myip.opendns.com @resolver1.opendns.com
It's easier, faster and more sure than a web site.
The text was updated successfully, but these errors were encountered: