How to find out your IP address on Alpine Linux

Fig.02: Finding out your IP address on Alpine Linux

Fig.02: Finding out your IP address on Alpine Linux

To find out your IP address on the Alpine Linux server, run:
ip a
Sample outputs:

1: lo:  mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
36: eth0@if37:  mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 00:16:3e:20:86:25 brd ff:ff:ff:ff:ff:ff
    inet 10.114.13.11/24 brd 10.114.13.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::216:3eff:fe20:8625/64 scope link 
       valid_lft forever preferred_lft forever

Or use the old goodl ifconfig command:
ifconfig -a
Sample outputs:

eth0      Link encap:Ethernet  HWaddr 00:16:3E:20:86:25  
          inet addr:10.114.13.11  Bcast:10.114.13.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe20:8625/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:710 errors:0 dropped:0 overruns:0 frame:0
          TX packets:374 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:620751 (606.2 KiB)  TX bytes:33018 (32.2 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

From above output it is clear that my IP address is 10.114.13.11.

Examples and usage: How To Install Nginx web server on Alpine Linux