Announcement

Collapse
No announcement yet.

detect network ip addresses

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • detect network ip addresses

    Is there a way AMS can detect all ip addresses within a network of approx. 80 computers? If so, how much information can I get from each computer on that network?

    Thanks

  • #2
    There are 3 ways to do that

    1: WMI with LuaCom plugin

    2: NET VIEW with command prompt (redirect result to a txt file or use commandline plugin ,or use Lua's native os functions)

    type NET HELP VIEW to command prompt window to see more info

    3: (Advanced/Hardest) NetServerEnum and WNetEnumResource and its open/close functions

    take a look at this page for more info
    amsplugins.com Is Closed.

    Facebook Page

    Comment


    • #3
      You could also use the Socket plugin and run a ping against all 255 IP addresses. If you get an answer, this would mean that there is a computer using that address.

      Ulrich

      Comment


      • #4
        Originally posted by Ulrich View Post
        You could also use the Socket plugin and run a ping against all 255 IP addresses. If you get an answer, this would mean that there is a computer using that address.

        Ulrich
        Ulrich , That's not a reliable solution

        when you ping an IP range , you will get reponse from everthing which can not be accepted as 'computer'

        network printers
        card swipe devices
        wireless hand terminals (usually windows CE 6.0) or custom firmware
        etc..
        etc..

        there are endless possibilities in a company network
        amsplugins.com Is Closed.

        Facebook Page

        Comment


        • #5
          I think that depends on your definition of computer.

          Ulrich

          Comment


          • #6
            Thanks guys, I think the socket plugin might be more suitable for this project.
            Could you expand on this solution a little. I haven't experimented much with the socket plugin.

            Comment


            • #7
              Here is a very simple sample application.
              Click image for larger version

Name:	SCRN-2014-03-31-01.png
Views:	1
Size:	34.9 KB
ID:	284179
              It will send a Ping to all IP addresses in the local network, and list those addresses which sent a reply. The program will then attempt to get a name for that IP, which may not work for devices such as routers, etc.
              If you need further info for those computers which did respond to the ping, you can make additional connection attempts to specific ports.

              This sample requires the Socket plugin.

              Ulrich

              Comment

              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎