I have local area network and I want to scan all IP addresses to find my laptop with Fedora installed from my Android phone using termux.
I've tried using:
nmap -sn 192.168.0.*
It found 3 hosts up but none of them is my Fedora laptop.
If nmap -sn 192.168.0.*
does not find your Fedora laptop, here are a few things to try:
1. Check Fedora's Firewall
Fedora has firewalld enabled by default, which might be blocking pings. Try disabling it temporarily:
shsudo systemctl stop firewalld
Then run nmap
again from Termux.
If this helps, you can allow ICMP (ping) permanently with:
shsudo firewall-cmd --add-service=icmp --permanent sudo firewall-cmd --reload
2. Use ARP Scan (Better for Local Networks)
Install arp-scan on Termux:
shpkg install root-repo pkg install arp-scan
Then run:
sharp-scan -l
This may detect your Fedora laptop even if it's blocking ping.
3. Use Nmap with TCP SYN Scan
If ping
is blocked, scan for open ports instead:
shnmap -p 22,80,443 --open 192.168.0.0/24
This will check if Fedora has SSH (22), HTTP (80), or HTTPS (443) open.
4. Check the Router's DHCP List
If you can access your router’s admin panel, look for connected devices. Fedora's hostname might help identify it.
Let me know what you've tried, and I’ll suggest more!
I don't want to modify anything on my system. I can login using SSH to my Fedora system, but nmap don't detect it.
Also
nmap -p 22,80,443 --open 192.168.0.0/24
don't show IP adress only that 3 are up.
Since you can SSH into your Fedora system, we know it's on the network, but nmap
isn't detecting it. That suggests one of the following:
-
Your Fedora machine is blocking ICMP (ping) – but since you don’t want to modify anything, we’ll work around that.
-
Your router might be filtering ping requests – some routers don’t forward ICMP responses properly.
-
Your Fedora machine responds only to specific network requests – like SSH, but not ping.
Alternative Methods to Find Your Fedora Machine’s IP from Termux
1. Use arp
in Termux (Best if You're on the Same Subnet)
Try listing all devices in your local network’s ARP table:
sharp -a
This should show IP-MAC mappings of all connected devices. Look for an unfamiliar MAC address (it might be your Fedora machine).
2. Use ssh
Directly to Find the IP
If you have saved SSH connections, this might work:
shssh -G fedora-hostname | grep hostname
Or if you can SSH using a known hostname:
shnslookup fedora-hostname
This should return the IP.
3. Use ping
with a Broadcast Address
Try:
shping -b 192.168.0.255
Then check the ARP cache:
sharp -n
Your Fedora machine might show up.
4. Use netdiscover
(Best for Finding Hosts Without Ping)
Install netdiscover
:
shpkg install netdiscover
Then scan the network:
shnetdiscover -r 192.168.0.0/24
This can find devices that nmap
doesn’t detect.
Would you like more aggressive methods that don’t require modifying Fedora but may take longer?
ChatGPT może popełniać błędy. Sprawdź ważne informacje.