When you write a server code such as Java Web/python/nodejs, you need to deploy to a host, the host as a server, and link a network cable to a switch, how to enable other devices to connect to the switch to access your Web application, this article resolves the problem
1, first installed Dnsmasq,unbuntu under Apt-get install DNSMASQ
2, Configuration dnsmasq. There are not many places to configure, one is/etc/network/interface, configure the parameters of the NIC interface. One is/etc/dnsmasq.conf, make sure the inside of the EXCEPT-INTERFACE=ENP1S0 (this name is the name of the network card you want to share, Enp1s0 is my Ubuntu to the name of the wired network card) and listen-address= 192.168.3.1,127.0.0.1, there is also a dhcp-range=192.168.3.100,192.168.3.200,12h, which indicates that the DHCP configuration range is two IP, the former is the static NIC IP of ENP1S0.
Linux Micro Host Server configuration