Solved

Connecting to a .Net web service running in the asp.net Development server using IP Address

Posted on 2011-09-28
5
307 Views
Last Modified: 2012-05-12
This is hopefully an easy one - me missing something obvious.
I've got a web service written in VS2010. I run it and it fires up in the development server, port 3730.
I can access it and debug it with no problem at all using the URL as follows:
http://localhost:3730/WebService.asmx.
If I change the localhost to my IP address:
http://l192.168.2.31:3730/WebService.asmx
I get a Internet Explorer cannot display the webpage error.
Its an issue cos I'm trying to access the WS from a Windows mobile PDA Emulator and it doesn't want to connect.
Any ideas ?
0
Comment
Question by:Phil Catterall
  • 3
  • 2
5 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 36771474
0
 

Author Comment

by:Phil Catterall
ID: 36995966
Yes - it was a typo. It should have read http://192.168.2.31.
So to re-cap, if I use the "Localhost" URl it's fine.
Use my IP address - doesn't work.
127.0.0.1 DOES work.
But the emulator can't use that - it needs to access it via the IP address.
Even using my machine name doesn't work.
I'm sure I am missing something obvious.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 37012707
Can you tell me how you are testing this setup, and which emulator that you are using?
0
 

Accepted Solution

by:
Phil Catterall earned 0 total points
ID: 37092715
Emulator is WM5, but it's the same from all of them.
And it's not the emulator which is the issue. It's trying to access the WS via an IP address that's the problem.
I've solved it though I think now by hosting the WS in IIS rather than the .Net development server.
It's still a mystery why the development server doesn't seem to like being addressed via IP address.
Bit weird.
0
 

Author Closing Comment

by:Phil Catterall
ID: 37119204
Resolved with a work-around
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question