Today I've managed to SSH into RaspberryPi (which was connected to Laptop using Ethernet cable) using the following IP address: 10.248.105.60
on Windows OS.
This was done in the university lab, where I had a proper monitor / mouse / keyboard connected to the RaspberryPi. I then made this IP address static on the Pi device itself by editing the /etc/network/interfaces file.
Some lines edited in the file were:
iface eth0 inet static address 10.248.105.60 netmask 255.255.224.0 # something about BCast # something about Gateway # something about Destination, sorry can't remember exact code.
I turned on / off Pi and my laptop several times to make sure that it works. Everything was fine.
But now I am back home, and want to connect to raspberry pi using the same IP address (10.248.105.60). However, after launching SSH program, I get an error connection timed out.
Why that happens?
Some of the possible issues I can think of are:
- as my new IP address is different, the netmask stored on SD of RaspberryPi is no longer valid.
- I am on different network than the device, so I can not SSH into it.
- destination is the IP address of my laptop, which no longer matches.
Could any of the above be the problem?
I would like to connect to my Pi device, but I do not have a monitor now.
So, a few more concrete questions:
How to check that RaspberryPi connected through Ethernet cable is properly connected (i.e. is it possible to send some "ping" command through the Ethernet cable)
Is it possible to determine RaspberryPi current IP address, if it has changed (though I would believe that it has not)?
Apart from SSH terminal (which is currently not functioning), I can not shutdown my device otherwise than just plugging the power off. Is that safe to do?