Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to get the ip asp.net mvc

using System;
using System.Web.Mvc;

namespace Mvc.Controllers
{
    public class HomeController : ClientController
    {
        public ActionResult Index()
        {
            string ip = Request.UserHostAddress;

            ...
        }
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ip #mvc
ADD COMMENT
Topic
Name
5+9 =