Set static ip under wifi connection of Raspberry Pi
save the burden of network cable, but ip under wifi connection may change, so you can set a static ip.
sudo nano /etc/dhcpcd.conf, add the following code at the end of the file:
interface wlan0
static ip_address=your intranet ip address/24
static routers=Intranet gateway ip address
static domain_name_servers=114.114.114.114 #Custom dns
Then restart it.