can not find ip address of connected raspberry pi via nmap
by imanipourmeysam from LinuxQuestions.org on (#6MJHF)
hi, I have a raspberry pi which is connected to interenet with my phone (via hotspot)
I am sure the raspberry pi is connected because I see it in the connected device in my phone.
I wanted to find the ip address of my raspberry pi so I can ssh into it.
I used this command "nmap -sn 192.168.45.0/24" but I don't find the ip of my raspberry pi via this command.
I found this command by googling how to find the ip address of connected device.
For the command I used 192.168.45.0/24 because in my windows machine when I type ipconfig in cmd, I see in section wireless LAN adapter WiFi, there is IPv4 which is 192.168.45.202
So I thought I need to do nmap -sn 192.168.45.0/24 but I don't still get the ip of raspberry pi.
both my pc and raspberry pi are connected to my internet of phone.
If the question is not clear please let me know to improve it.
I am sure the raspberry pi is connected because I see it in the connected device in my phone.
I wanted to find the ip address of my raspberry pi so I can ssh into it.
I used this command "nmap -sn 192.168.45.0/24" but I don't find the ip of my raspberry pi via this command.
I found this command by googling how to find the ip address of connected device.
For the command I used 192.168.45.0/24 because in my windows machine when I type ipconfig in cmd, I see in section wireless LAN adapter WiFi, there is IPv4 which is 192.168.45.202
So I thought I need to do nmap -sn 192.168.45.0/24 but I don't still get the ip of raspberry pi.
both my pc and raspberry pi are connected to my internet of phone.
If the question is not clear please let me know to improve it.