Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Unable to external IP address. #6

Closed
dark-vex opened this issue Oct 17, 2017 · 0 comments
Closed

Unable to external IP address. #6

dark-vex opened this issue Oct 17, 2017 · 0 comments

Comments

@dark-vex
Copy link

dark-vex commented Oct 17, 2017

It seems that http://ipv4.myexternalip.com/raw not working anymore with urllib (but also with curl) so I have replaced this line

result = urlopen("http://ipv4.myexternalip.com/raw", timeout=3).read()

with this new url for checking the external IP
result = urllib2.urlopen("https://api.ipify.org", timeout=3).read()

@matt1 matt1 closed this as completed Oct 17, 2017
matt1 added a commit that referenced this issue Oct 17, 2017
Fix for issue #6 and code indentation
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants