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. C#
  4. Static IP?

Static IP?

Scheduled Pinned Locked Moved C#
question
9 Posts 5 Posters 0 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.
  • M Offline
    M Offline
    Midnight Ahri
    wrote on last edited by
    #1

    i'm working on an application that marks a computer that ever accessed it. i mark it using computer name, but since computer name can be changed, i'd love to know whether static IP can be changed or not, thanks before. :)

    P 1 Reply Last reply
    0
    • M Midnight Ahri

      i'm working on an application that marks a computer that ever accessed it. i mark it using computer name, but since computer name can be changed, i'd love to know whether static IP can be changed or not, thanks before. :)

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Of course they can.

      M 1 Reply Last reply
      0
      • P PIEBALDconsult

        Of course they can.

        M Offline
        M Offline
        Midnight Ahri
        wrote on last edited by
        #3

        PIEBALDconsult wrote:

        Of course they can.

        guess i've to find something else that's really static. btw thank you. :)

        S 1 Reply Last reply
        0
        • M Midnight Ahri

          PIEBALDconsult wrote:

          Of course they can.

          guess i've to find something else that's really static. btw thank you. :)

          S Offline
          S Offline
          SoMad
          wrote on last edited by
          #4

          If you can get the MAC address of the network card of the computer connecting to your server, that should work for what you are describing. There are ways to change the MAC address too, but it not something you will normally see. Soren Madsen

          R D 2 Replies Last reply
          0
          • S SoMad

            If you can get the MAC address of the network card of the computer connecting to your server, that should work for what you are describing. There are ways to change the MAC address too, but it not something you will normally see. Soren Madsen

            R Offline
            R Offline
            Roger Wright
            wrote on last edited by
            #5

            Excellent answer, Soren. Yes, the MAC address can be spoofed, but 99.999% of users won't have any idea how to do so, nor any reason to. IIRC, on a local network the ARP command will return the MAC address. On the Internet, I'm not sure that there is a way to return this information, but it's worth looking into.

            Will Rogers never met me.

            S 1 Reply Last reply
            0
            • S SoMad

              If you can get the MAC address of the network card of the computer connecting to your server, that should work for what you are describing. There are ways to change the MAC address too, but it not something you will normally see. Soren Madsen

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

              You haven't said what kind of application you're working on, nor if you are writing the server-side code or client side. On the server-side, it doesn't matter if you're writing a ASP.NET or Windows Forms app, you cannot get the client MAC address. You'll end up getting the MAC address of the near-side of the router closest to your server, not the client MAC. If you're writing client-side code in a Windows Forms app, the client get easily get it's own MAC address and send that information in a request to the server. You'll have to implement the interface on the server and client for this to work.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak

              S 1 Reply Last reply
              0
              • D Dave Kreskowiak

                You haven't said what kind of application you're working on, nor if you are writing the server-side code or client side. On the server-side, it doesn't matter if you're writing a ASP.NET or Windows Forms app, you cannot get the client MAC address. You'll end up getting the MAC address of the near-side of the router closest to your server, not the client MAC. If you're writing client-side code in a Windows Forms app, the client get easily get it's own MAC address and send that information in a request to the server. You'll have to implement the interface on the server and client for this to work.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak

                S Offline
                S Offline
                SoMad
                wrote on last edited by
                #7

                I know the OP has not given a whole lot of detail, but since he posted his question in this forum, I figured it would be valid to mention the MAC address. He is looking for something that is both unique to a computer and does not change. I totally agree he might not be able to acquire the MAC address and that totally depends on what he is developing. Soren Madsen

                M 1 Reply Last reply
                0
                • R Roger Wright

                  Excellent answer, Soren. Yes, the MAC address can be spoofed, but 99.999% of users won't have any idea how to do so, nor any reason to. IIRC, on a local network the ARP command will return the MAC address. On the Internet, I'm not sure that there is a way to return this information, but it's worth looking into.

                  Will Rogers never met me.

                  S Offline
                  S Offline
                  SoMad
                  wrote on last edited by
                  #8

                  Thanks Roger, I agree, the OP (and just about all of us) is highly unlikely to run into anyone spoofing the MAC address, but I thought I would mention that part too. Soren Madsen

                  1 Reply Last reply
                  0
                  • S SoMad

                    I know the OP has not given a whole lot of detail, but since he posted his question in this forum, I figured it would be valid to mention the MAC address. He is looking for something that is both unique to a computer and does not change. I totally agree he might not be able to acquire the MAC address and that totally depends on what he is developing. Soren Madsen

                    M Offline
                    M Offline
                    Midnight Ahri
                    wrote on last edited by
                    #9

                    i've tried it and i got something like 50E549A6XXXX. thank you very much. :laugh:

                    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