Logging IP address of the client machine
If want to get the IP address of the client machine that is accessing my server for logging, in a ASP function, how can do it ?
add into your global.asa.
set BC = server.createobject("MSWC.BrowserType")
IPAddress = Request.ServerVariables("remote_addr")
/////you can also retreive the follow from the HTTP Header
UserAgent = Request.Servervariables ("HTTP_USER_AGENT")
Browser = BC.Browser & " " & BC.Version
DHTMLSupport = cstr(BC.dhtml)
FramesSupport = cstr(BC.frames)
TablesSupport = cstr(BC.tables)
CookiesSupport = cstr(BC.cookies)
BackGroundSounds = cstr(BC.backgroundsounds)
JaveAppletsSupport = cstr(BC.javaapplets)
ActiveXControlsSupport = cstr(BC.activexcontrols)
AOL = cstr(BC.aol)
Platform = cstr(BC.platform)
VBScriptSupport = cstr(BC.vbscript)
FullReferer = Request.ServerVariables("http_referer")
Hope this helps
Thanks. it worked.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)