Static IP?
-
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. :)
-
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. :)
Of course they can.
-
Of course they can.
PIEBALDconsult wrote:
Of course they can.
guess i've to find something else that's really static. btw thank you. :)
-
PIEBALDconsult wrote:
Of course they can.
guess i've to find something else that's really static. btw thank you. :)
-
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
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.
-
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
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 -
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 KreskowiakI 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
-
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.
-
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
i've tried it and i got something like 50E549A6XXXX. thank you very much. :laugh: