Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Can this be done with C#?

  • 09-09-2005 11:13AM
    #1
    Closed Accounts Posts: 181 ✭✭


    Hey I am thinking of developing an app in C# that will act as way of determing the physical location of a pc in a building. Im kinda new to C# so forgive my shortcomings. My thinking of how I will approach it will be that I will use a command similar to the "ping" command to the physical network port that the machine is connected to, to verify that the pc is at that location. I know C++ had a number of IP commands, but I am asking too much? Also does a network port have a static hardware address like a mac address?


Comments

  • Closed Accounts Posts: 35 Ivan Dunaev


    look for System.Net namespace
    ping can be found here - http://www.eggheadcafe.com/articles/20020209.asp


  • Registered Users, Registered Users 2 Posts: 4,003 ✭✭✭rsynnott


    Bear in mind that not all computers do respond to ping.


  • Registered Users, Registered Users 2 Posts: 131 ✭✭theexis


    Also does a network port have a static hardware address like a mac address?

    I presume you are talking about the network socket on the wall? Typically this has no address itself - you'll want to be talking to the router to query which port has which IP address and then have a table of where each router port is physically wired to in the building.


Advertisement