473,388 Members | 995 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

"An address incompatible with the requested protocol was used"

HI,
i am trying to create a simple UDP client application on the windows mobile using c# to send messages as data packets to a desktop pc. I am getting this error when deploy the application on windows mobile;

"An address incompatible with the requested protocol was used"
i am very new to windows mobile application development and this is partof my final year project. Can someone please give me some clues why i am getting this error? I need to solve this problem urgently

the bit of code that generates the error is as follows:

Expand|Select|Wrap|Line Numbers
  1. string packet = "Hello";
  2. byte[] data = System.Text.Encoding.ASCII.GetBytes(packet);
  3. client.Send(data, data.Length, "127.0.0.1", 50000);
Thanks is advance..

Channa

<edit by mod: use [code] and [quote] tags, not [b] and [u]>
Nov 15 '08 #1
4 10416
RedSon
5,000 Expert 4TB
The error you are getting indicates that the address 127.0.0.1 does not support UDP. If your phone is not network or ethernet compatible then sending data to the loopback will not work.

You should try using the WM 5 emulator instead of a real device, it can use your computers NIC to communicate with itself and the outside world.
Nov 17 '08 #2
The error you are getting indicates that the address 127.0.0.1 does not support UDP. If your phone is not network or ethernet compatible then sending data to the loopback will not work.

You should try using the WM 5 emulator instead of a real device, it can use your computers NIC to communicate with itself and the outside world.

Hi,

Thanks alot for your reply.I do use the emulator to test the application and never tried it with the actual device. and i tried both WM5 and WM6 emulators . i have installed the Virtual PC 2007 and Activesysnc to support the emulator to connect wiht NIC... this was sugested in one of the articles i red. but i am still getting the same error.... is there anything else that i have to do??? any configurations in the emulator or change the code????

Thanks in advance.......


Regards

Channa
Nov 19 '08 #3
RedSon
5,000 Expert 4TB
Can you connect to websites and other things from the emulator?
Nov 19 '08 #4
Can you connect to websites and other things from the emulator?
HI,

Yes i can browse internet from the emulator......

Regards

Channa
Nov 20 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Robert | last post by:
did you solve this problem? It seems to be still present here with py2.3.5. Robert -- From: Manish Jethani <manish.j@gmx.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;...
3
by: Jaroslaw Zabiello | last post by:
I got strange errors in Zope 2.7. METALError macro 'context/base' has incompatible version None, at line 1, column 1 One ZPT file (named 'base') defines some simply slots: <html...
2
by: Jean | last post by:
Hello everyone, I was having the following problem with a query, and after failing to find a similar solution on these newsgroups I decided to post here. I am quite new to Access, so would...
4
by: KatB | last post by:
Hi, I'm creating an asp.net application and one of the functions I need is to click on a "Where Is This Office Located?" button. In a table, each employee will have an office code location...
4
by: LP | last post by:
Hi, My webservice is currently deployed on WIndows 2000 server and runs pretty fine. I am trying to run my webservice on a Windows 2003 server. My webservice tries to write to a eventlog. The...
6
by: PraZ | last post by:
Hi all. Here is a simple code, which when compiled with gcc results in the warning "incompatible pointer type" for arg 1, as expected. But this is just what I want to do, because it makes it...
7
by: Peter Ritchie | last post by:
I'm writing a Web Service and I would like to add performance counter data for monitoring performance of the Web Service's operations over time and load. The problem is, I get the "Requested...
21
by: Steven T. Hatton | last post by:
I'm trying to improve my formal understanding of C++. One significant part of that effort involves clarifying my understanding of the vocabulary used to describe the language. This is from the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.