I am trying to configure my Ubuntu (20.04) server on an old laptop, and there is something I do not understand about the configuration. From the ISP router's settings, I can see that it allocated the wifi IP 192.168.1.66 to the server, and lan IP 192.168.1.111 - I've also set the router to always give this IPs to the server and forward HTTP/S to 192.168.1.111. But being new to server-ing, I have to ask: shouldn't there be only one IP for the server?
Further more, and this is my big issue, in the Ubuntu's Network settings I cannot see the lan IP (see photo). The hosted site loads fine in the browser, and I'm also also using a software called NoMachine I connect remotely to the Ubuntu's desktop to the same lan IP 192.168.1.111, so I'm assuming everything works fine.
I just want to make sure that the server is using the lan cable to serve the site's visitors, and not connect to wifi. This is the /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
ethernets:
enp2s0:
dhcp4: true
version: 2
Update: I've just discovered the network manager command (slowly learning linux) and added an eth connection (all automatic, for compatibility). But when I try to connect to it, it still writes that the connection was never used. Nmcli con show -a displays only the wifi connection. /etc/netplan/00-installer-config.yaml is the same.
cat /etc/netplan/*.yaml
Welcome to Ask Ubuntu.