Can I assign a static ip address to a ethernet connected pi using the same router as my PC does?

December 6, 2023, 08:54

gelid_cryotheum

Hi all, I have a Pi connected to my PC via direct ethernet cable (as in, one end plugged into PC, one end plugged into pi). Is there a way for me to assign the ip address of the ethernet port to use the same router as my pc does? (aka the wifi router). Currently when I try to set a static ip address using the router address it just doesn't work. I need to do this to be able to ping the raspberry pi from my virtual machine according to this: https://forums.virtualbox.org/viewtopic.php?p=543989#p543989 Relevant info: Model: 3b+ OS: raspbian Router IP: 192.168.0.1

oops.se

Use a search enginee and search for "Internet sharing" and your PC's Operating System and you will find a solution

chopps568

assign a static ip in dhcp reservation on your router