TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vandana
1.2k
590
76.2k
how to validate user with (userid,password,IP address)
Oct 24 2018 1:44 PM
Hi
I have a problem of login on the basis of IP.
Suppose we have two table
1) contains: Username,Pass
2) Contains : UserName, IP
Single user can have multiple IP Assign
when the user enters Username and Password I have to check out IP address matches with
Ip provided to user in table 2
If Username,Ip,and Pass matches there will be successful login
I have created a function to get IP :
public void GetIPAddress(out string userip)
{
userip = Request.UserHostAddress;
if (Request.UserHostAddress != null)
{
Int64 macinfo = new Int64();
string macsrc = macinfo.ToString("X");
if (macsrc == "0")
{
Label1.Text = userip;
}
}
}
but further I don't know that how to do it
thanks in advance
Reply
Answers (
1
)
how to call webapi every 15 min in windows service
how to make PreDefined templates