Webservice IP address trouble in device emulator

R

Rene Ruppert

Hi,

I think right now I'm down to the real problem why my webservices cannot be
run on the device emulator.

The IP of my desktop PC is 192.168.178.2 but under this IP I cannot reach a
single webservice. When entering
http://192.168.178:3220/WebSite1/Webservice.asmx I get a page not found
error.
The file can only be reaced at 127.0.0.1, which is the localhost IP. On the
device emulator, 127.0.0.1 also seems to be localhost, but the one of the
device, so this won't work.

How can I configure the built in webserver of VS2005 to make my site
accesible at 192.168.178.2?
I'm developing under Win XP and just installed the IIS and pointed its
website to the directory of the ASMX file but this solution doesn't work
either.

Any hints?

Thanks.

René
 
S

Simon Hart

I think right now I'm down to the real problem why my webservices cannot
be run on the device emulator.

I am assuming you mean connecting to a remote web service from the device?
The IP of my desktop PC is 192.168.178.2 but under this IP I cannot reach
a single webservice. When entering
http://192.168.178:3220/WebSite1/Webservice.asmx I get a page not found

I take it the above address is a typo, missing .2.
error.
The file can only be reaced at 127.0.0.1, which is the localhost IP. On
the device emulator, 127.0.0.1 also seems to be localhost, but the one of
the device, so this won't work.

How can I configure the built in webserver of VS2005 to make my site
accesible at 192.168.178.2?
I'm developing under Win XP and just installed the IIS and pointed its
website to the directory of the ASMX file but this solution doesn't work
either.

I've never used the built in web server in VS 2005 but check the following:

Can the web service be accessed via another machine on the network (not
device)
Check the XP firewall is not blocking port 3220 if it is, open it up.
If using IIS ensure port 80 is not being blocked also as port 80 is the
default port.
I don't *think* pocket IE could render the ASMX file anyway, you would
probebly just get the asmx definition file displayed.

Simon.
 
R

Rene Ruppert

Hi,
I am assuming you mean connecting to a remote web service from the device?
That's correct.
I take it the above address is a typo, missing .2.
Yes, it's missing the .2.
I've never used the built in web server in VS 2005 but check the
following:

Can the web service be accessed via another machine on the network (not
device)
Check the XP firewall is not blocking port 3220 if it is, open it up.
If using IIS ensure port 80 is not being blocked also as port 80 is the
default port.
I don't *think* pocket IE could render the ASMX file anyway, you would
probebly just get the asmx definition file displayed.

On my developing machine (where the service is hosted) I can access the
corresponding ASMX file only at
http://localhost:3220/WebSite1/ChatService.asmx or at
http://127.0.0.1:3220/WebSite1/ChatService.asmx but NOT at
http://taz:3220/WebSite1/ChatService.asmx and not at
http://192.168.178.2:3220/WebSite1/ChatService.asmx.

The 192.168.178.2 is my machine's IP (not dynamic, no DHCP) and 'Taz' is the
name of my PC. Here's the first problem: why isn't the site available at
192.168.178.2? This is my internal IP, it is the same machine as 127.0.0.1!?

In my chat client I added the web reference by using
http://127.0.0.1:3220/WebSite1/ChatService.asmx.

On the device emulator I can open the ChatService.asmx in the pocket
explorer ONY by using my machine name 'Taz', that means:
http://taz:3220/WebSite1/ChatService.asmx opens the ASMX page correctly.
This page contains a test button for each method of the service. If I press
the button, I get "The page you are looking for cannot be found".

If I try to access the webservice directly from my client program I get
"Could not establish connection to network".
This is logical to me, since the web service is registered as 127.0.0.1 and
on the device emu. this IP address is not my host but the device itself.

I double checked firewall and router settings. Firewall is disabled. When
accessing 192.168.178.2 the router isn't event used since it is a local
request. Anyway I opened 3220; without success.

If you can help or know of any good step by step instructions or have a
sample that works for you on the device emu please send it to me at
rene.ruppert@!REMOVETHIS!o2online.de


Many Thanks.

René
 
S

Simon Hart

It doesn't make any sense. Can you try typing IPCONFIG.exe into a DOS prompt
and be sure the IP address is correct and that you are connected to a
network.
 
R

Rene Ruppert

It doesn't make any sense. Can you try typing IPCONFIG.exe into a DOS
prompt and be sure the IP address is correct and that you are connected to
a network.

Network connection is definitely available (DSL) and works fine.
The result of IP config says:

Ethernetadapter LAN-Verbindung:

Verbindungsspezifisches DNS-Suffix:
IP-Adresse. . . . . . . . . . . . : 192.168.178.2
Subnetzmaske. . . . . . . . . . . : 255.255.255.0
Standardgateway . . . . . . . . . : 192.168.178.1

Ethernetadapter Bluetooth-Netzwerkverbindung:

Medienstatus. . . . . . . . . . . : Es besteht keine Verbindung

C:\Dokumente und Einstellungen\René Ruppert>ipconfig /all

Windows-IP-Konfiguration

Hostname. . . . . . . . . . . . . : taz
Primäres DNS-Suffix . . . . . . . :
Knotentyp . . . . . . . . . . . . : Unbekannt
IP-Routing aktiviert. . . . . . . : Nein
WINS-Proxy aktiviert. . . . . . . : Nein

Ethernetadapter LAN-Verbindung:

Verbindungsspezifisches DNS-Suffix:
Beschreibung. . . . . . . . . . . : NVIDIA nForce Networking
Controller
Physikalische Adresse . . . . . . : 00-30-1B-B1-8D-36
DHCP aktiviert. . . . . . . . . . : Nein
IP-Adresse. . . . . . . . . . . . : 192.168.178.2
Subnetzmaske. . . . . . . . . . . : 255.255.255.0
Standardgateway . . . . . . . . . : 192.168.178.1
DNS-Server. . . . . . . . . . . . : 192.168.178.1

Ethernetadapter Bluetooth-Netzwerkverbindung:

Medienstatus. . . . . . . . . . . : Es besteht keine Verbindung
Beschreibung. . . . . . . . . . . : Bluetooth-Gerät (PAN)
Physikalische Adresse . . . . . . : 00-02-72-80-DD-16
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top