Skip to content
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

getmyip doesn't function when there isn't a Internet connection... #33

Open
choksi81 opened this issue May 24, 2014 · 0 comments
Open
Assignees

Comments

@choksi81
Copy link
Contributor

It's unclear why getmyip() should raise an error if the host is not connected to the Internet. Yes, this is okay, according to the specification of the API, but really doesn't make much sense. It should choose a non-loopback IP instead (if available) or loopback if not.

This happens on my Linux laptop, but does not seem to happen on Prof Cappos's Mac laptop (possibly).

The error seems to come from the line:
sockobj.connect((external_ip, external_port))
in _get_localIP_to_remoteIP.

The error raised by the line looks like the following:
error 101 Network is unreachable

This is also being tracked on the AFFIX tracker as: https://affix.poly.edu/projects/project/ticket/6

@choksi81 choksi81 self-assigned this May 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants