192.168.178/24 and 192.168.80/24 are NOT two different networks.
These are two different IPs on same network.
192.168.178/24 and 192.168.80/24 are NOT two different networks.
These are two different IPs on same network.
Network 1 is 192.168.178 and network 2 is 192.168.80
How are these the same network?
There is a router connecting them.
S
Edit. Fixed typo in network number.
Note there are only 3 octets in those addresses.
192.168.x.178/24 and 192.168.x.80/24 would be on the same network, however 192.168.178.x/24 and 192.168.80.x (which I think is what @SweetPea11 meant) are indeed on different networks.
Different networks are fine provided you have the routing set up correctly.
Can you ssh to a Pi at your home from a computer at your friend’s home, without opening port at your home router or setting up a VPN?
Your home network and your friend’s home network are not the same network. That is what I meant.
/24 defines the range of the last octet as being 0~255.
Isn’t that what a router is for - connecting two different networks!
Yes!
No.
Of course not as that brings in RFC1918 (as amended) private address space (not unique), NAT, ALGs etc.
Not really relevant to your previous statement
S.
@SweetPea11
Please read again what I have written.
It says “same Local Network/Router”, which gives two options Either “same Local Network” OR “same Router”. You have simply ognored the “same Router” option, and focusing only on “same Local Network” option. You should consider my statement in full, not in part only.
This is getting seriously off topic.
I will simply finish my comments by saying that the PC I use to SSH is on a Local (Area) Network and the Pi is on a different Local (Area) Network.
These two LAN segments are NOT connected to the same router.
To quote Douglas Adams “So long and thanks for all the fish.”
Thanks. I also dont want to continue discussing this off topic issue, and want to close it, with following comment:
As far as I know, SSH between two independent LANs, each connected to a different router, is possible only if the two routers have some arrangement of interconnection, possibly through a VPN, or may be through a third router or through a server.
If you are able to SSH from one Local Network to another Local network, both on different routers, and without any of the arrangements which I have described above, then I will be glad to know the details, as it will be a valuable addition to my networking knowledge, which is only basic. Thank you in advance.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.