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:

sh
sudo systemctl stop firewalld

Then run nmap again from Termux.

If this helps, you can allow ICMP (ping) permanently with:

sh
sudo firewall-cmd --add-service=icmp --permanent sudo firewall-cmd --reload

2. Use ARP Scan (Better for Local Networks)

Install arp-scan on Termux:

sh
pkg install root-repo pkg install arp-scan

Then run:

sh
arp-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:

sh
nmap -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:

  1. Your Fedora machine is blocking ICMP (ping) – but since you don’t want to modify anything, we’ll work around that.

  2. Your router might be filtering ping requests – some routers don’t forward ICMP responses properly.

  3. 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:

sh
arp -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:

sh
ssh -G fedora-hostname | grep hostname

Or if you can SSH using a known hostname:

sh
nslookup fedora-hostname

This should return the IP.

3. Use ping with a Broadcast Address

Try:

sh
ping -b 192.168.0.255

Then check the ARP cache:

sh
arp -n

Your Fedora machine might show up.

4. Use netdiscover (Best for Finding Hosts Without Ping)

Install netdiscover:

sh
pkg install netdiscover

Then scan the network:

sh
netdiscover -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.