Alexei Fimine
_____________
"And though I have the gift of prophecy, and understand all mysteries, and all knowledge; and though I have all faith, so that I could remove mountains, and have not charity, I am nothing"
Right click on your project in the solution explorer and select properties. From there go to the "web" tab and check "Use Local IIS Web server". You can then set the address instead of using localhost.
2) implement port-forwading on your internet router so your Port 80 (or whatever other port you want your web traffic to go through) is exposed to the outsied (http://portforward.com/routers.htm)
3) get your global IP from your router or by typing "what's my ip" in Google. Send this IP to your friend, who is "far away" :)
You can also implement dynamic dns service.
Alexei Fimine
_____________
"And though I have the gift of prophecy, and understand all mysteries, and all knowledge; and though I have all faith, so that I could remove mountains, and have not charity, I am nothing"
Marked as answer by Dino He - MSFT on Aug 14, 2012 02:48 PM
rajeshpeddal...
0 Points
15 Posts
localhost
Aug 07, 2012 07:09 PM|LINK
hiii friends can anyone help me in solving dis problem...
when i rum my web application its url is http://localhost:5740/WebSite16/login.aspx
but i want to access it by my ip address like http://10.101.125.9:5740/website16/login.aspx
is it possible...?? please help me asap
fimine
Contributor
3008 Points
549 Posts
Re: localhost
Aug 07, 2012 07:13 PM|LINK
Did you try?
_____________
"And though I have the gift of prophecy, and understand all mysteries, and all knowledge; and though I have all faith, so that I could remove mountains, and have not charity, I am nothing"
MattsDotNetU...
Contributor
3178 Points
515 Posts
Re: localhost
Aug 07, 2012 07:28 PM|LINK
Right click on your project in the solution explorer and select properties. From there go to the "web" tab and check "Use Local IIS Web server". You can then set the address instead of using localhost.
pradeep shar...
Contributor
3988 Points
760 Posts
Re: localhost
Aug 08, 2012 05:12 AM|LINK
yes you can access it by using your system ip address inspite of local host but it should be configured with iis
by default it runs with devlopment server not iis
rajeshpeddal...
0 Points
15 Posts
Re: localhost
Aug 08, 2012 01:15 PM|LINK
what i need is i should access it from other computer after running it in my system i want to show it to my friend who is far away...
MattsDotNetU...
Contributor
3178 Points
515 Posts
Re: localhost
Aug 08, 2012 01:24 PM|LINK
That is different. you should Deploy it to your machine then. Below is an example on how to do this.
http://weblogs.asp.net/scottgu/archive/2010/07/29/vs-2010-web-deployment.aspx
fimine
Contributor
3008 Points
549 Posts
Re: localhost
Aug 08, 2012 03:19 PM|LINK
How far? I mean, you are on your local network, which is inaccessible directly from outside.
You need to (use these as search phrases) :
1) deploy on local IIS (http://www.codeguru.com/csharp/.net/net_framework/article.php/c19419/Deploying-ASPNET-Applications--Part-1.htm)
2) implement port-forwading on your internet router so your Port 80 (or whatever other port you want your web traffic to go through) is exposed to the outsied (http://portforward.com/routers.htm)
3) get your global IP from your router or by typing "what's my ip" in Google. Send this IP to your friend, who is "far away" :)
You can also implement dynamic dns service.
_____________
"And though I have the gift of prophecy, and understand all mysteries, and all knowledge; and though I have all faith, so that I could remove mountains, and have not charity, I am nothing"