Assuming you are a OK, let's assume you are a Linux user, then First case: I don't have money to buy a monitor for the Raspberry Pi, and I only have an Internet cable left from my home broadband connection and a wireless router for Internet access. How can I know the IP address of the Raspberry Pi? At this time, you only need to connect the Raspberry Pi to the wireless router LAN interface with an Ethernet cable and log in to the wireless router user management interface.
or
Then you can see an IP that is not your PC, that is the IP of your Raspberry Pi Some people may say, using ifconfig, isn’t that nonsense? If you can't log in, where can you run ifconfig? My suggestion: 1. View from the router (troublesome) 2. Just write a program to loop through 192.168.1.1---192.168.1.255. This is what I did. The timeout for each connect detection is 100ms. I can quickly find the Raspberry Pi IP address, as follows: Done. Second case I am a poor college student. I want to learn embedded system for the first time. I saved money to buy a Raspberry Pi. Then I just connected an Ethernet cable. How can I know the IP address of the Raspberry Pi? There is a protocol in the TCP/IP protocol called At this point, those who know the tricks will know how to do it. It’s okay if you don’t know. Let’s continue. The ARP protocol is for the first communication service within the LAN. Each host will poll the IP address. The host with this IP address must send its MAC address to the host that initiated the ARP poll according to the ARP protocol. Then we use this I am a Debian user here, other Red Hat users can change the command by themselves enter sudo apt-get install arp-scan Then install a small software like this Then here, pay attention Use arp-scan in root mode so sudo arp-scan -interface eth0 --localnet Isn't the IP address divided into four segments, ABCD? We only use ARP within the LAN segment, for example: Your PC LAN IP address is 192.168.1.9 and the subnet mask is 255.255.255.0 Then Then wait for a while, the IP of the Raspberry Pi will come out, and then you can ssh using this IP ssh -l pi xxxx Then enter your password raspberry OK, login to Raspberry Pi is successful Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: MySQL database table and database partitioning strategy
>>: Four ways to switch tab pages in VUE
When a request is sent to your server to display ...
In fact, this is also a clickbait title, and it c...
This article shares with you how to use bootstrap...
Key Modifiers When listening for keyboard events,...
Table of contents A. Docker deployment of springb...
In general, MySQL provides a variety of storage e...
Table of contents 1. Implement the $(".box1&...
No more nonsense, post code HTML part <div cla...
For a long time, website development was hampered...
Preface: The MySQL database provides a wide range...
1 Download The address is: https://dev.mysql.com/...
Table of contents 1. Technology Selection 2. Tech...
Table of contents Preface Query usage scenario ca...
1. Prepare data The following operations will be ...
Six effectsImplementation Code html <h1>CSS...