Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to access my project(hosted in IIS) only for one internet IP Address. In iis have number of projects i want to give permission for particular user depends upon internet IP


What I have tried:

I tried below link but in this process it will take system IP
How to configure IIS to access website using IP address? - Knowledgebase - AccuWebHosting[^]
Posted
Updated 18-Sep-17 2:27am
v2

1 solution

See here: c# - How to get a user's client IP address in ASP.NET? - Stack Overflow[^] - but do note that the address you get will not be a single machine: all computers using the same interface to the internet (usually a router) will share the same IP address. So if there are a dozen computers on your LAN and / or WiFi, they will all be able access the app.

If you want to restrict it to a single computer, use a Cookie.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900