Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: (untagged)
Hello firends,

I have a website in asp.net c# and i need to get which computer access my website from browser.

I need to get client information like MAC Address, IpAddress, Computer Name and Other in asp.net c# from website.. I try with lots of solution but i did not get any thing. I need this all for security purpose.

Please help me. I want information of client which is log in my system.

Thanks in advance.

Preksha Shah

What I have tried:

I try with lots of solution but i did not get any thing. I need this all for security purpose.
Please guys help me asap.
Posted
Updated 27-Dec-18 22:33pm
Comments
Mohibur Rashid 28-Dec-18 1:42am    
ABOUT MAC: https://stackoverflow.com/questions/20857009/how-to-retrieve-mac-address-from-remote-computer-using-asp-net. Http Client such as Google Chrome or Firefox does not return those information in general.

You can't. The MAC address doesn't go past the Router (and is only unique within a LAN segment anyway), the IP address is of the Router, not the actual client computer (which will probably be 192.168.0.xxx for all clients anyway and can be different each time the PC is powered up), the computer name is not available for security reasons.

The only way to identify a computer to a server is to place a cookie on it and read it back: you cannot get the computer info without adding software to the computer that can be communicated with directly (and that's pretty much impossible these days).
 
Share this answer
 
Hello,

Thank u for the reply.
Is there any way to get visitor's computer details.If anyone have solution for that please share me the information how to get detail for same.

Thank you,
Preksha Shah.
 
Share this answer
 
Comments
Richard MacCutchan 28-Dec-18 4:48am    
Did you actually read OriginalGriff's answer? You cannot get this information in a webbrowser for security reasons. If it was possible then it would lead to all sorts of hacking.
tatva pct107 28-Dec-18 5:14am    
i have a project and i want to implement for security purpose.I want to only some user's device to access this website.Have u any way to apply for security purpose.
MadMyche 28-Dec-18 6:54am    
Then you need to re-conceptualize the project; block everyone and only allow those you want, like Authentication/Authorization

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900