All Questions
Tagged with ip-address asp.net
88
questions
-1
votes
1
answer
900
views
How to get Client Ip address or Client/user Machine name in aspx c#
I am using a login form where i want to get user/client ip address or user machine name. Now there are multiple solution provided on multiple platforms including stackoverflow and i have tried almost ...
0
votes
1
answer
227
views
In ASP.NET MVC can not get the DHCP assigned IP address of clients Which visits my website
Trying to access the clients ip address of another PC from my website build in ASP.NET MVC.
I have used the bellow properties of .NET but still it's sending the IP address of clients always 127.0.0.1 ...
0
votes
1
answer
330
views
Get ALL IP addresses that contains X hostname in LAN (Multiple same hostnames)
I'm trying to loop through all IP address within range (192.168.1.1 - 192.168.1.255) and print out the IP address that contains X hostname.
I am trying to use this code, but it only give me the last ...
0
votes
1
answer
47
views
How can a page tell if it is being served on local LAN? [closed]
My project is a web-application that is to serve as a company Landing Page with a logo and quick links.
I would like to add extra links to LAN-based webpages for users who are in my local LAN, but ...
0
votes
2
answers
350
views
visitors IP address doesnt show
I have a problem with getting visitor ip address
I am using asp net mvc
I used the following code to save the visitors IP addresses bur unfortunately It didnt work on my local network many visited my ...
0
votes
1
answer
825
views
Getting user ip address C# ASP.NET webforms
I'm trying to get the ip address of any user uses to access my site but instead I get the ip address of the server/machine of the web hosting company that is hosting my site. I'm trying to save the ip ...
1
vote
1
answer
143
views
IP whitelisting on Azure WebApp for AppInitialization
Could not find information about the IP whitelisting for Azure WebApps that have app initialization section.
If you have config section like this
<system.webServer>
<...
1
vote
0
answers
231
views
C#, Unable to retrieve 'Request.UserHostAddress' from HttpRequest [duplicate]
I am working on an MVC project in C# using dotnet version 2.2.107. I am trying to retrieve the remote IP address of the client using the UserHostAddress property: https://learn.microsoft.com/en-us/...
0
votes
1
answer
2k
views
How to restrict some IP in .net core
I have converted my website from ASP.NET to ASP.NET Core.
In the original ASP.NET project, I had restricted some IPs via the webconfig like this:
<system.webServer>
<security>
<...
1
vote
1
answer
217
views
How do I get the full IP rather than ::1?
I have wrote this to get client's ip address but it just gets this ::1 instead of 172.16.0.129. I want to get Ipv4 version of the ip. How do I do this?
return HttpContext.Current.Request.Params["...
0
votes
0
answers
68
views
asp.net mvc how to get web server ip of incomming post request to my site
I have an asp.net mvc web application and should be filter request by ip of client web server ip(web server ip not client ip : many of client have a same web server ip), how can i do this?
0
votes
0
answers
65
views
Why does ip.AddressList contain two ip addresses?
This is my program to display the ip address of a system.
IPHostEntry ip = Dns.GetHostEntry(Dns.GetHostName());
IPAddress[] IPaddr = ip.AddressList;
for (int i = 0; i < IPaddr.Length; i++)
{
...
0
votes
0
answers
207
views
How does ASP.NET Web API format IP Addresses?
From this and similar questions I find that the source IP address of requests to an ASP.NET WebAPI application can be found in
HttpContext.Current.Request.UserHostAddress;
Or, more generally, the ...
0
votes
1
answer
1k
views
Bypass Proxy Server, ASP Website on IIS
I've actually deployed my asp website on IIS and everything works well. I have done some reading on how to bypass the proxy server but i'm still unsure on how to do it. The reason why i want to bypass ...
0
votes
1
answer
1k
views
Looking for External IP Address on Localhost
Hi i'm working on logging on a security website in school, but it's all localhost based.
I'm looking to actually capture whoever visits my website. I actually want to capture the external IP address ...