Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 23rd, 2006, 12:47 AM
YLi YLi is offline
Registered User
 
Join Date: Oct 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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!

Reply With Quote
  #2 (permalink)  
Old October 23rd, 2006, 12:59 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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.
Reply With Quote
  #3 (permalink)  
Old October 23rd, 2006, 12:01 PM
YLi YLi is offline
Registered User
 
Join Date: Oct 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!

Reply With Quote
  #4 (permalink)  
Old October 23rd, 2006, 12:58 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
localhost ongmymap ASP.NET 3.5 Basics 5 November 8th, 2008 02:09 PM
do not want to use localhost p2ptolu Classic ASP Databases 1 September 15th, 2005 06:03 PM
localhost problems sdfharkin BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 October 26th, 2004 07:27 PM
Localhost Yee Dreamweaver (all versions) 6 October 21st, 2004 09:21 AM
localhost - hangs Gardener Classic ASP Basics 2 July 14th, 2004 04:42 PM



All times are GMT -4. The time now is 03:21 PM.


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