morpheusking
Posts: 2
Joined: Fri Apr 10, 2020 7:58 pm

Issue using my laptop as a monitor through SSH and putty

Fri Apr 10, 2020 8:12 pm

Hi

So I have a raspberry Pi 2 B+ that I can connect to my laptop with an Ethernet cable - whether I am connected to the internet or not - I connect through putty and open the GUI through xming and all is good. This works fine whether or not I have "allow other network users to connect through this computers internet connection" selected and works when i am or am not connected to the internet. Basically it works no matter what.

I bought a 3 B+ and am trying to do the same but cannot get it to work. Please can someone give me an idiots guide as to how I can achieve the above.

I followed a guide and long story short it said type in sudo nano /etc/dhcpcd.conf and put the below info in:

interface eth0
static ip_address=192.168.137.22

interface wlan0
static ip_address=192.168.0.18

static routers=192.168.0.1
static domain_name_servers=192.168.137.1 192.168.0.1

192.168.137.22 works when i have the internet connection sharing box ticked but does not work when its not. Why is it the 2 b+ works regardless and this one doesn't? I cant find the guide I used to setup my first one and don't know what I'm doing wrong.

The only difference is in the cmdline.txt file on the 2 B+ the ip address I type into putty to connect is there whereas on the 3+ it isn't.

What is different about the two models as one will work and this one doesn't...

All I want to do is to use my laptop as a monitor, mouse and keyboard and be able to connect through the Ethernet cable like i do with my other one. I often bring it to work and mess around in my lunch break so don't have internet access.

sorry for the essay!

thanks

James

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5590
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Issue using my laptop as a monitor through SSH and putty

Fri Apr 10, 2020 8:51 pm

morpheusking wrote:
Fri Apr 10, 2020 8:12 pm

...

The only difference is in the cmdline.txt file on the 2 B+ the ip address I type into putty to connect is there whereas on the 3+ it isn't.

...

thanks

James
What happens if you add (a similar) address in the same way into /boot/cmdline.txt for the 3B+ ? Also you don't state what O.S. you're using (so Raspbian will be assumed) or what version (ie. is it up to date)?
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

morpheusking
Posts: 2
Joined: Fri Apr 10, 2020 7:58 pm

Re: Issue using my laptop as a monitor through SSH and putty

Fri Apr 10, 2020 9:43 pm

Hi Trevor,

I downloaded Raspbian today from the official raspberry Pi website and ran all the updates so It should be whatever the latest version is. I’m a bit of a noob with all this so forgive me.

Yeah I tried that on the 3B+ with no luck.

Now interestingly the 2 B+ will only allow me to connect if I turn WiFi off on the laptop > it connects > then I can turn WiFi on and it stays connected. Weird thing is I haven’t changed anything on the 2... going to sleep on it and have another look tomorrow. Been trying everything I can think of/find on google for about 8 hours today...

Return to “Troubleshooting”