wlandau / crew

A distributed worker launcher
https://wlandau.github.io/crew/
Other
129 stars 4 forks source link

Method to look up the local IP address #74

Closed wlandau closed 1 year ago

wlandau commented 1 year ago

crew needs to get the local IP address of the client R session so workers can dial into the address over TCP. I am using getip::getip() for this, and it works on all the machines I can access, but it is not usable in cases like https://github.com/wlandau/crew.cluster/issues/1#issuecomment-1546024163. In addition, getip is limited to IPv4, it can't do IPv6 yet.

shikokuchuo commented 1 year ago

The issue is there is not a single way of getting this - it is highly platform dependent. Hence, probably (i) see if the maintainers of getip are open to extending their package or (ii) wrap system calls (although this again will be different on each platform).