Retrieve local ip independently#888
Conversation
Signed-off-by: Merlin Rabens <[email protected]>
Signed-off-by: Merlin Rabens <[email protected]> Closes #1.
Signed-off-by: Merlin Rabens <[email protected]>
Signed-off-by: Merlin Rabens <[email protected]>
|
In my case this then returns the ip address of a random virtual machine: This is what my |
|
@blaues0cke Thanks for pointing this out! Let's find a better solution then. May I kindly ask you what returns in your case? |
|
Sun Aug 18 15:14:40 BST 2019 I use:
@bluedigits - the above does give the correct IP address for the active connection. |
@rprimus That works! Thanks for this great solution! :clap |
…-localip-independently * 'master' of github.com:bluedigits/dotfiles: Create git alias for comparing branches Try to checkout first an existing branch Add dg git alias Change some .macos defaults
bc63db7 to
060c9b2
Compare
Signed-off-by: Merlin Rabens <[email protected]>
060c9b2 to
e99d49a
Compare
|
I added the localip command as a function to get around the eager substitution of the alias during shell start. Otherwise you would have to call |


Since MacOS doesn't necessarily name the cabled network interface
en0thelocalipcommand fails when WI-FI is down. This PR should fix this issue and resolve the local ip properly when connected via cable.