-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Retrieve local ip independently #888
base: main
Are you sure you want to change the base?
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
en0
thelocalip
command fails when WI-FI is down. This PR should fix this issue and resolve the local ip properly when connected via cable.