I installed termux on my phone and Kali inside, but Kali’s IP address is the same as my phone’s. I think the phone’s IP is the same address, and Kali’s IP is the same address. How should I modify it.
Well its the same device, so why should it have a different IP? Unless I am misunderstanding you.
Hello, I’m sorry to reply to your email now. Here’s the situation. I installed $termux and kali, but when using nmap, I was prompted that I could not use it. I sent you a video. Thank you, my dear friend. My English is not good. I am studying hard.
Kali can’t use the phones wifi connection, the phone (the host) is using it already.
It’s the same as when you run Kali in a VM on a computer, if you want to be able to use WiFi scanning, you will need an external USB WiFi adapter plugged in to an OTG cable to connect it to the phone.
Ok, thank you, I see.
But there is one thing I don’t understand. I don’ t visit the mobile phone kali, but I can run namp on $termux to scan normally, but I can’ t scan through the mobile phone kali, just like the pictures I sent.
Because termux is an app on your phone, so like any app you use, it is allowed to use the phones connection to the internet.
nethunter is a virtual environment running inside your phone, so like any VM on any platform, if you want to be able to use WiFi you need an external dongle. A VM cannot access the hosts hardware directly, the host is already using it!
On a computer VM software will emulate a network interface, and it will appear to the guest OS as an ethernet connection, and the host will use NAT to route the VM traffic over the Host real hardware, it is never a direct to hardware connection.
The only way to use the hosts hardware is to install nethunter on a rooted phone with a nethunter kernel that has been compiled to allow that to happen.