asp classic get user IP When login

2020-05-10 08:23发布

We have a staff attendance system. It's written in asp classic with MS ACCESS database where its store users info and their login time.

I want to add one more extra thing, where I can see the users workstation IP address from where they login.

We believe that some one is logging in for some one else even they are not in office.

How to get the workstation IP address?

we have around 25 client in a user network. when ever they reach the office the have to login to LoginStaff Attendance System, Attendance login page

when ever the user login its write in MS Access database as below.Staff Attendance Database

we think someone is attending attendance for someone before he even arrive into office to show he was on Time

标签: asp-classic
2条回答
Animai°情兽
2楼-- · 2020-05-10 09:16

If the site is CloudFront'ed, you have to use Request.ServerVariables("LOCAL_ADDR") instead ...

查看更多
霸刀☆藐视天下
3楼-- · 2020-05-10 09:27

You can use

Request.ServerVariables("REMOTE_ADDR")

To get the remote ip address

查看更多
登录 后发表回答