Skip to content

Commit

Permalink
#0 | Document fallback host loopback interface ip - fix inadvertent s…
Browse files Browse the repository at this point in the history
…pace
  • Loading branch information
1t5j0y committed Jun 13, 2024
1 parent 1f268e1 commit 724b750
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ ip:=$(shell ifconfig | grep -A 2 'vboxnet' | grep 'inet ' | tail -1 | xargs | cu
ip:=$(if $(ip),$(ip),$(shell ifconfig | grep -A 2 'wlp' | grep 'inet ' | tail -1 | xargs | cut -d ' ' -f 2 | cut -d ':' -f 2))
ip:=$(if $(ip),$(ip),$(shell ifconfig | grep -A 2 'en0' | grep 'inet ' | tail -1 | xargs | cut -d ' ' -f 2 | cut -d ':' -f 2))
ip:=$(if $(ip),$(ip),$(shell ifconfig | grep -A 4 'en0' | grep 'inet ' | tail -1 | xargs | cut -d ' ' -f 2 | cut -d ':' -f 2))
ip:=$(if $(ip),$(ip),10.0.3.2) #Fallback for host loopback interface. 10.0.3.2 is for genymotion using virtualbox. try 10.0.2.2 if not using genymotion. https://developer.android.com/studio/run/emulator-networking
#Fallback for host loopback interface. 10.0.3.2 is for genymotion using virtualbox. try 10.0.2.2 if not using genymotion. https://developer.android.com/studio/run/emulator-networking
ip:=$(if $(ip),$(ip),10.0.3.2)

AVNI_HOST?=$(ip)
sha:=$(shell git rev-parse --short=4 HEAD)
Expand Down

0 comments on commit 724b750

Please sign in to comment.