I am using PuTTY
and a VNC
viewer to control my Raspberry Pi.
Now, I have to change the static IP-address of the LAN Interface of my PC from:
192.168.0.1
to
ip: 192.168.1.20
netmask: 255.255.0.0
RPi IP:
ip: 192.168.10.100
netmask: 255.255.0.0
The problem is that PuTTY
cannot connect to the Raspberry Pi anymore, if I do so.
Is it even possible to control the Raspberry Pi, if I change the client IP-address? And if so, what do I have to configure on the Raspberry Pi so that this works?
Here my properties of the LAN Interface on the PC (sorry, it's in german):
Here my dhcpcd.conf on the RPi:
(I already tried to change static routers
and static domain_name_servers
to 192.168.1.20
)
And my interfaces:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.dauto lo
iface lo inet loopbackiface eth0 inet dhcp
# WLAN-Interface Hostapd
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.1
netmask 255.255.255.0
192.168.0.XXX
IPs when you are on192.168.**1**.XXX
IP, could you display your Raspberry IP and netmask?