Ticket #1147 (assigned defect)

Opened 6 years ago

Last modified 6 years ago

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

Reported by: ffund Owned by: anuhya
Priority: major Milestone:
Component: repyV2 Version: 0.1t
Severity: Medium Keywords:
Cc: justinc, ffund, sportzer, monzum, varungarg Blocking:
Blocked By:


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 [Errno 101] Network is unreachable

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

Change History

Changed 6 years ago by anuhya

  • owner changed from vijay to anuhya
  • status changed from new to assigned
Note: See TracTickets for help on using tickets.