New answers tagged

1

On the Pi, you have to bind the socket to an IP address of one of the Pi's interfaces. You cannot bind it to the PC's IP address. If you want the socket to accept connections from all of the Pi's interfaces, you can use the IP address 0.0.0.0 (or :: in IPv6). On the PC, the server IP should be an IP address that the Pi is bound to. Let's say the Pi is ...


1

With DHCP enabled, if all is otherwise well, your Pi should get an address on your local network. You will be able to see it in your router's tables or as raspberrypi.local assuming your phone is mDNS-capable. You now need to configure your microSD card to start SSH on boot. The "start SSH" part is covered in the link I posted in the comments. You want ...


1

I solved my problem first by installing dhcpcd by running # apt-get install dhcpcd dhcpcd-gtk and then by uninstalling wicd by using # apt purge wicd, then # apt autoremove. Now if I unplug ethernet and reconnect it, it reconnects automatically.


1

Have a look at the /etc/dhcpcd.conf file. It needs to read something like interface eth0 static ip_address=192.168.1.10/24 static routers=192.168.1.1 static domain_name_servers=1.1.1.1 208.67.220.220 Key thing is the static routers line - that should point to the home router to give internet access.


1

This is NORMAL. You can have EITHER ICS OR ssh access, not BOTH. It is not impossible to have both, but this requires additional software and complex configuration on the laptop, and this is off-topic for this site. NOTHING you can do on the Pi is going to make it work. NOTE this Question has been asked before e.g. Why can I connect to my Raspberry Pi when ...


2

So I had this problem with an RP 4, within 5 mins the router would crash. As silly as it sounds, changing the network cable ro a different brand means its been running for around 5 hours with no crashes. Hope this helps


0

Same thing for me. My PC was on 5 GHz band, Pi on 2.4 GHz band of router. Moved PC to 2.4 GHz, now I can Putty and CMD Ping to Pi ip.


0

It looks like I got it working. My /etc/network/interfaces file now looks like this auto lo iface lo inet loopback auto eth0 allow-hotplug eth0 iface eth0 inet static address 192.168.0.10 netmask 255.255.255.0 # gateway 192.168.2.14 dns-nameservers 192.168.2.1 auto wlan0 allow-hotplug wlan0 iface wlan0 inet static wpa-ssid "XXXXX"...


1

Very late reply, but I have done even more testing and found out more information. The RPi4 cannot be set up to be an ethernet gadget itself. Originally, I had a chain set up where the RPiZ was plugged into the RPi4, and the RPi4 was plugged into my laptop. The USB cables must be very good. A cable that successfully creates an ethernet gadget on my laptop ...


0

I finally decided to try with a new raspian OS, so I formatted the memory card and installed a fresh copy. Not sure why but this solved the issue, now both Ethernet and WiFi are working


1

Removing a USB socket will achieve nothing: you won't be able to solder an RJ45 in its place anyway, and there's a chance you will damage your Raspberry while trying. If your project has such constraints that there's no way to fit an USB Ethernet adapter, look into other boards. For instance there's Orange Pi R1 which has two Ethernet ports + WiFi and is ...


Top 50 recent answers are included