Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6774975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:51:07+00:00 2026-05-26T15:51:07+00:00

I am trying to write a program that scan an ip range and detect

  • 0

I am trying to write a program that scan an ip range and detect if an ip is address of a router or not.

Currently i used traceroute from my computer to all host in the network. However, i believe there must be some way to directly “ask” a host at an ip if it is a router or not?

by the way, do you know any program/ opensource already does this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:51:07+00:00Added an answer on May 26, 2026 at 3:51 pm

    Routers are supposed to talk couple of protocols (actually a neat bunch) that regular IP nodes do not, and then there are some which are more common (i.e. even non-router nodes do).

    Router-only protocols:

    • VRRP
    • IGRP / EIGRP
    • OSPF
    • BGP
    • RIP

    You could do active-probing on those, i.e. send a packet (behaving as if you are another router, or an end-node) and checking to see what kind of response the router (if at all) sends.

    Alternatively you could do passive-probing, like ‘sniffing’, i.e. watching out for the kind of IP packets being sent out by various nodes. There are some which are usually sent out by Routers only (again, mostly from the above list).

    Common protocol, but that can actually tell you a lot:

    • SNMP (esply the unsecure one’s like v1/v2, are easy to deal with, without having to establish a secure session)

    Other ways:

    • Portscanning (actually can tell you a real lot), for example all routers have some management ports (although, often they are locked down due to security concerns)

    What you want to do is often what many ‘Network Management’ software do, to “discover” capabilities / functionality of other nodes in the network. And, there isn’t a single size-fits all solution. They use bunch of different methods, heuristics to finally figure out what the other node is.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write a program that reads text from external file (string string
I'm trying to write a program that reads in entries from a file into
I'm trying to write a program that manipulates unicode strings read in from a
I'm trying to write a program that reads 2 numbers from the user and
I'm trying to write a program that prints all numbers from 0 to 1,000
I'm trying to write a program that reads 2 numbers from the user and
I'm trying to write a program that uses sockets to connect with other instances
I am trying to write a program that allows a binary to be run,
I am trying to write a program that displays the integers between 1 and
i am trying to write a program that close explorer then runs another program.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.