Question: ifconfig how to get ip address?
Answer: ifconfig -a.
ip addr (ip a)
hostname -I | awk '{print $1}'
ip route get 1.2. ... 
(Fedora) Wifi-Settings→ click the setting icon next to the Wifi name that you are connected to → Ipv4 and Ipv6 both can be seen.
nmcli -p device show.