I want to check someone's ip address when they come onto my website, is there a way that I can do that using c# and asp.net?

Recommended Answers

All 4 Replies

Request.ServerVariables["REMOTE_ADDR"].ToString()

One question, what is "REMOTE_ADDR" is it built in or a user defined thing?

Thanks

It's just string. It's built in. Using that exact, word for word, example you'll get their ip.

ok thanks for clearing that up.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.