Answers for "how to get the ip asp.net mvc"

C#
0

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;

            ...
        }
    }
}
Posted by: Guest on January-18-2021

Code answers related to "how to get the ip asp.net mvc"

C# Answers by Framework

Browse Popular Code Answers by Language