Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Hello,I want to get Machine Address Or I want to g
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AHMEDHHH1
Junior Member

Egypt
105 Posts

Posted - 03 April 2013 :  15:52:18  Show Profile  Reply with Quote
Hello
I want to get
Machine Address
Or I want to get a fixed ip

Doug G
Support Moderator

USA
6493 Posts

Posted - 06 April 2013 :  16:40:44  Show Profile  Reply with Quote
You can maybe get the client ip with request.servervariables9("remote_addr") but it's not 100% reliable.
You can't get the client MAC address with asp, if that's what you're looking for.

======
Doug G
======
Computer history and help at www.dougscode.com
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 06 April 2013 :  17:58:30  Show Profile  Reply with Quote
Now, with so many proxy servers in use, anyone wanting to fool you will be hard to detect. It would be nice if the MAC address was available.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 07 April 2013 :  03:43:23  Show Profile  Visit HuwR's Homepage  Reply with Quote
taken from inc_func_common.asp


UserIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
	if UserIPAddress = "" or left(UserIPAddress, 7) = "unknown" then
  		UserIPAddress = Request.ServerVariables("REMOTE_ADDR")
	elseif InStr(UserIPAddress, ",") > 0 then
		UserIPAddress = Left(UserIPAddress, InStr(UserIPAddress, ",")-1)
	elseif InStr(UserIPAddress, ";") > 0 then
		UserIPAddress = Left(UserIPAddress, InStr(UserIPAddress, ";")-1)
	end if
	UserIPAddress = Trim(ChkString(UserIPAddress,"SQLString"))
	if InStr(UserIPAddress, ":") > 0 then
		UserIPAddress = Left(UserIPAddress, InStr(UserIPAddress, ":")-1)
	end if

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

AHMEDHHH1
Junior Member

Egypt
105 Posts

Posted - 08 April 2013 :  15:42:59  Show Profile  Reply with Quote
Know how to find this kind of ip
But the problem with me that some people are using laptop and move from network to network
And changed the ip
You could get information on No. Alrmat or Albroosso or information about the computer user
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 09 April 2013 :  02:44:10  Show Profile  Visit HuwR's Homepage  Reply with Quote
try this javascript

<script type="text/javascript" language="javascript">   
var ax = new ActiveXObject("WScript.Network");   
document.write(ax.UserName + '<br />'); //logged in account name   
document.write(ax.ComputerName + '<br />'); //Windows PC name
</script>

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

AHMEDHHH1
Junior Member

Egypt
105 Posts

Posted - 09 April 2013 :  09:53:19  Show Profile  Reply with Quote
I got on the computer name
<%
Set objNetwork = CreateObject("WScript.Network")

strNAME = objNetwork.computername

response.write(" " & strNAME & "<br>")
%>

I want to get RAM or processor
Go to Top of Page

AHMEDHHH1
Junior Member

Egypt
105 Posts

Posted - 09 April 2013 :  10:09:35  Show Profile  Reply with Quote
ComputerName and UserDomain and UserName

Set objNetwork = CreateObject("WScript.Network")


Response.write "Computer Name: " & ObjNetwork.ComputerName & "<br>"
Response.write "User Domain: " & ObjNetwork.UserDomain & "<br>"
Response.write "User Name: " & ObjNetwork.UserName & "<br>"



I want to get RAM or processor
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 09 April 2013 :  12:44:55  Show Profile  Visit HuwR's Homepage  Reply with Quote
No, that's not possible. There is no access to hardware information through JavaScript in web browsers. You might have some luck using browser plugins, ActiveX, etc.

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

AHMEDHHH1
Junior Member

Egypt
105 Posts

Posted - 09 April 2013 :  14:16:13  Show Profile  Reply with Quote
ok Thank you, professor HuwR
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07