Using GitLab Runner with GDK in DHCP environment
We need to use a static IP for using GitLab Runner with GDK.
The
host
parameter needs to be changed fromlocalhost
to an IP address that actually exists on the computer.0.0.0.0
is not valid - runipconfig
(Windows),ifconfig
(Mac, BSD) orip addr show
(Linux) to get a list of IPs. The right one to use depends on your network, and may change from time to time, but an address like10.x.x.x
,172.16.x.x
or192.168.x.x
is normally the right one.
Although, sometimes we can't use a static IP because of DHCP environment (e.g. co-working place, cafe).
So far we got 2 ideas.
gdk set_ip
sudo ifconfig lo0 alias 198.18.0.1/32