Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Linux Programming
  4. Find alive IP

Find alive IP

Scheduled Pinned Locked Moved Linux Programming
linuxquestion
4 Posts 4 Posters 18 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    _Flaviu
    wrote on last edited by
    #1

    If there is an IP hidden after a firewall, how Linux (or any) command should I use in order to know if this IP is alive ? Because PING is not working in this case ...

    K V D 3 Replies Last reply
    0
    • _ _Flaviu

      If there is an IP hidden after a firewall, how Linux (or any) command should I use in order to know if this IP is alive ? Because PING is not working in this case ...

      K Offline
      K Offline
      k5054
      wrote on last edited by
      #2

      You might be able to use nmap to find out. You can use the -Pn option to tell nmap to skip the ping scan to determine if the host is up. Be aware that nmap will try to connect to a wide range of known ports, which might trigger watchdogs on the target network. In general, using nmap on networks that you are not a valid user of is considered bad manners, so discuss with the network owner before using. Your success will depend on how the firewall is configured. If it is set up to block all access from WAN for that host (e.g. drop all inbound/outbound packets to/from the host you are interested in), you will never get any response from the host. Your only hope may be that you can access a different host on the target network and be able to try to ping or connect to the host from there.

      Keep Calm and Carry On

      1 Reply Last reply
      0
      • _ _Flaviu

        If there is an IP hidden after a firewall, how Linux (or any) command should I use in order to know if this IP is alive ? Because PING is not working in this case ...

        V Offline
        V Offline
        Victor Nijegorodov
        wrote on last edited by
        #3

        You already got an answer here: [Find alive IP](https://forums.codeguru.com/showthread.php?565412-Find-alive-IP&p=2239325#post2239325) Doesn't it work?

        1 Reply Last reply
        0
        • _ _Flaviu

          If there is an IP hidden after a firewall, how Linux (or any) command should I use in order to know if this IP is alive ? Because PING is not working in this case ...

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          If the target is behind a firewall, and that firewall is configured to quash inbound ICMP, you have no way of pinging the machine.

          Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
          Dave Kreskowiak

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups