p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   .NET Web Services (http://p2p.wrox.com/forumdisplay.php?f=102)
-   -   Why can I use localhost:port only? (http://p2p.wrox.com/showthread.php?t=49316)

YLi October 23rd, 2006 12:47 AM

Why can I use localhost:port only?
 
I created a web service for testing.After creating it,I debugged it in VS2005, and I can access to my web service successfully using address like: http://localhost:2357/mywebservice/xxx.asm.
But,I changed "local host" to my IP address(172.16.220.54),it could't work. I have tried many times,but failed.
who can tell me why and how to fix it?

thx a lot!


Imar October 23rd, 2006 12:59 AM

If you're talking about the built-in web server, then yes: this development server listens to localhost only. It's meant to be used during development so to increase security it only listens to localhost.

To fix that, install IIS on your machine and use that as a web server.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.

YLi October 23rd, 2006 12:01 PM

what you mean is to publish my web service?
Before I created that web service,I had installed IIS5.1 on my computer.Also,I tried to right click the web service name(project name) in solution Explorer of VS2005,and I choose "Publish web site";after this ,it still could't work .
I am a beginer of web service.So,pls give me some advice.Maybe a step by step instruction of pubulishing web service is the best.
thx so much!


Imar October 23rd, 2006 12:58 PM

If you want people to access your web service from out side your machine, you'll need to run the site under IIS. The development web server that comes with Visual Studio is only meant for development purposes.

Take a look at the "getting started" section of Visual Web Developer on the MSDN site: http://msdn2.microsoft.com/en-us/library/xasa2c3y.aspx

In addition to that, Google for "run web service asp.net iis" or "run web site asp.net iis"

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.


All times are GMT -4. The time now is 08:43 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.