Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi All,
I am using asp.net,C#,VS 2005,and sql server 2005
I have created a setup file for my web project...
I have also installed IIS in my PC..
my database (.mdf) file is in App_Data folder
I have installed my project now ...

i have the URl like:http://localhost/WebSetup1/MyFirstPage.aspx

it is working perfectly in my PC..



Now Can i access this asp.net website from another PC throgh IP address which is connected with a LAN network ...

what are the procedures to implement this and what are the requirements needed and what must be the URL?

Anybody hep with the exact tutorial....

regards
karan
Posted

Yes you should be able to, unless Admininstration has blocked your IP (via a firewall or something) for some reason.
You should be able to access your website using http://xxx.xx.xx.xxx/WebSetup1/MyFirstPage.aspx where xxx.xx.xx.xxx is your machine's IP address.
 
Share this answer
 
v2
Comments
karan joshua 30-May-11 4:10am    
thank u....Is there any other issue that may come across while accessing?
Abhinav S 30-May-11 4:21am    
Nothing unless there are external issues like your network is down, someeone changes your firewall settings etc.
karan joshua 30-May-11 4:53am    
thank u....
thatraja 30-May-11 22:40pm    
my 5!
Abhinav S 31-May-11 2:06am    
Thanks man.
You will need to configure you IIS (assuming this is the web server your are/will using) allowing access from WLAN/LAN to specific users (or anonymous). Allow IIS trought your firewall if you have one.

Your application won't need to be changed, that's just networking problems ans configuration you will have to face to allow acces only trought LAN and WLAN.You can access using IP address. Make sure

Turn off your firewall
If you do have a firewall turn it off while you try connecting for the first time, you can sort that out later.
OR

Refer :

http://websitedesign09.wordpress.com/2010/01/12/access-an-asp-net-website-using-ip-address-in-an-lan-network/[^]
 
Share this answer
 
v2
Comments
karan joshua 30-May-11 4:14am    
thank u...turning off firewall will be a problem....means security is not ensured?

and is there any issue with database connection...?
Kiran Sonawane 30-May-11 4:17am    
No issue if the application and database server running on same machine
karan joshua 30-May-11 4:53am    
thank u...
thatraja 30-May-11 22:39pm    
Good answer, Have my 5!

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