Click here to Skip to main content
15,918,211 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want my application to run in only specific ip address that is stored in webconfig file like

<add key="RestrictIPAddress1" value="192.168.78.0 to 192.168.78.50">

and I am having one textbox. If I have entered different ip other than in the list (for eg: if I enter 192.168.78.51) it will show error msg.

It works well for single IP address, but not for a list of IP address.

Can Anyone help me immediately Please?
Posted
Comments
OriginalGriff 3-Oct-12 3:52am    
Without seeing your code? No.
Use the "Improve question" widget to edit your question and provide better information.

But do be aware that If you move this to the web, your IP address will NOT be 192.168.x.x - that is an internal LAN address and will never leave the local network. Your IP will be assigned by your ISP, and in most domestic cases is subject to change every time you reboot the router...

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