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.
-
disconnect the RPi and try again .... do you still get "network refused" ?– jsotolaSep 21, 2018 at 21:51
-
Just to clarify.... The Pi is connected to a Windows PC... The Windows PC is connected to the Internet... and the Pi is connected to the Windows PC ethernet port and is receiving an IP address lease from a DHCP server in a wifi router through the Windows PC bridged wifi and ethernet... Is that correct? ... And you are attempting to connect to the Pi from the Windows PC?– RubberStampSep 22, 2018 at 2:43
-
Pi is connected with ethernet on the pc and the pc is connected via wifi on the router and has internet access. The only thing I did was to share the wifi network with the ethernet. I'm sorry but I don't know what a DHCP server is . The sharing between the ethernet network and the wifi network is not bridged.– MikeSep 22, 2018 at 2:45
-
OK... so... what is the IP address of the Pi ? and what is the IP address of the Windows PC?– RubberStampSep 22, 2018 at 2:50
-
The IP address of the window machine is known but I can't see the IP address of the pi if it isn't connected to my router. The ethernet network doesn't show an IP or I don't know how to see it when i connect it with the pi.I think there was a command line using cmd,ping and arp -a ?– MikeSep 22, 2018 at 2:59
1 Answer
You can have either ICS or ssh
access NOT both!
Connect the Pi to your router.
-
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?– IngoSep 22, 2018 at 9: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. Sep 22, 2018 at 10:32