I've read multiple guides on how to connect a raspberry pi with a pc through internet yet I always fail . I have a windows machine,I did share the wifi connection with the ethernet which the pi is connected to. I also did activate ssh from the sudo raspi-config menu beforehand (but did not add an ssh file) on the pi. I also read the pi's ip using the advanced ip scanner program yet I cannot connect on the pi. Both Putty and VNC viewer say "network refused" whenever I try to connect. And yes I did consider restarting the machine multiple times to ensure sharing is applied. I tried the exact same steps on another machine on another network and got the same problem. Can anyone give me a hint? I'm getting kinda desperate.Thanks for your time. I'll post an answer if I find one.
Asked
Active
Viewed 58 times
1 Answers
1
You can have either ICS or ssh access NOT both!
Connect the Pi to your router.
Milliways
- 59,840
- 31
- 101
- 209
-
I'm not a windows user so I do not understand why a host connected to a windows pc that provides Internet Connection Sharing cannot be reached by
ssh(putty?). Even the Limitations section on the link to Wikipedia does not give any hints. Can you please explain? – Ingo Sep 22 '18 at 09:03 -
@Ingo I am not a Windows user either - this is not just a Windows issue it also applies to macOS. (I know it is possible to setup bridging in other ways but simple layer 2 bridging seems to be the only offering.) Similar questions have been asked on this site dozens of times. Routers are so cheap and readily available it hardly seems worth trying to decipher the arcane Windows stack. – Milliways Sep 22 '18 at 10:32
dhcpcdon the RasPi should get an ip address from the Windows PC and everything is good. What do I missing? – Ingo Sep 22 '18 at 12:27arp /alooks like it should show that on the Windows ICS host according to the documentation ... Perhaps I'm wrong --- In either case, this question is not a RPi question, it's a MS Windows question. – RubberStamp Sep 22 '18 at 12:44