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: - string packet = "Hello";
-
byte[] data = System.Text.Encoding.ASCII.GetBytes(packet);
-
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]> 4 10454 RedSon 5,000
Recognized Expert Expert
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.
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
RedSon 5,000
Recognized Expert Expert
Can you connect to websites and other things from the emulator?
Can you connect to websites and other things from the emulator?
HI,
Yes i can browse internet from the emulator......
Regards
Channa
Sign in to post your reply or Sign up for a free account.
Similar topics |
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; rv:1.6b)
Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
|
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
xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en-US"
|
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 appreciate any help/pointers in the right direction.
The problem is that I keep getting the error to the likes of "Data
types in the criterion expression are incompatible" when the query
runs.
|
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 entered.
I then need to have the office layout image load and have the name of
that person highlighted such as bold/red (in the correct office
location).
Similar to an image map, but not quite. I do not want to click on an
office "hotspot" and go...
|
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 code is as follows:
System.Diagnostics.EventLog Log = new System.Diagnostics.EventLog(
EventLogName );
Log.Source = EventLogName;
Log.WriteEntry( "PCHistory Service Application started up successfully.",
| |
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 easy for me to handle the
single dimensional stream I have as a multidimensional array inside the
function func(). Now, I am just wondering if there is a way by which I
can disable this incompatible pointer type warning in gcc. Any
suggestions?
|
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 registry access is not allowed."
SecurityException when I try and create the performance counter category via
PerformanceCounterCategory.Create().
I understand the login used to run the Web Service does not have access to
the registry keys...
|
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 C++ Standard:
""
"...sequence of operators and operands that specifies a computation...".
That means to me that an expression can be "executed". I am purposely
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |