Skip to main content

This should be a comment to Dbo's answer but I just signed up. UsuallyUsually the ipIP is 192.168.2.2 when a Pi is connected to a laptop via ethernetEthernet. However sometimesometimes it isn't. And I don't find:

arp -a

arp -a

so useful.

In that case use the following command:

netstat -rn -finet

netstat -rn -finet

Check the Mac address of your Pi and the ipIP address next to it is the one. If you don't know the Mac address, it's likely something like 192.168.2192.168.2.x.x

This should be a comment to Dbo's answer but I just signed up. Usually the ip is 192.168.2.2 when a Pi is connected to a laptop via ethernet. However sometime it isn't. And I don't find

arp -a

so useful.

In that case use the following command

netstat -rn -finet

Check the Mac address of your Pi and the ip address next to it is the one. If you don't know the Mac address, it's likely something like 192.168.2.x

Usually the IP is 192.168.2.2 when a Pi is connected to a laptop via Ethernet. However sometimes it isn't. And I don't find:

arp -a

so useful.

In that case use the following command:

netstat -rn -finet

Check the Mac address of your Pi and the IP address next to it is the one. If you don't know the Mac address, it's likely something like 192.168.2.x.

Source Link
YOUNG
  • 101
  • 1

This should be a comment to Dbo's answer but I just signed up. Usually the ip is 192.168.2.2 when a Pi is connected to a laptop via ethernet. However sometime it isn't. And I don't find

arp -a

so useful.

In that case use the following command

netstat -rn -finet

Check the Mac address of your Pi and the ip address next to it is the one. If you don't know the Mac address, it's likely something like 192.168.2.x