Solved

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

Posted on 2011-09-28
5
306 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
error on the asp.net page 1 33
Data is not showing from images 15 37
Replace &lt; with < 14 54
Make an ajax call ithat alters url and updates a listview in asp.net 1 19
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

932 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now