Sending UDP to WP8.1 emulator does not work

I have very simple test app that sends UDP data from Windows desktop app to the app on Windows Phone 8.1 emulator and it does not work for me. Here is desktop code that sends data:
UdpClient c = new UdpClient();
c.Connect(new IPEndPoint(IPAddress.Parse("127.0.0.1"), 49003));
byte[] b = new byte[] { 1,2,3,4 };
c.Send(b, b.Length);
And here is Windows Phone 8.1 app that should receive it.
private async void btnTest_Click(object sender, RoutedEventArgs e)
var h = new Windows.Networking.HostName("localhost");
DatagramSocket dss = new DatagramSocket();
dss.MessageReceived += dss_MessageReceived;
dss.Control.DontFragment = true;
await dss.BindEndpointAsync(h, "49003");
async void dss_MessageReceived(DatagramSocket sender, DatagramSocketMessageReceivedEventArgs args)
MessageDialog md = new MessageDialog("Received something");
await md.ShowAsync();
The very simple desktop app receives UDP data but the app in windows phone emulator does not receive anything. I tried changing IP addresses in sending app, changing port numbers, looked at windows firewall but nothing worked so far. Any ideas?

OK it worked. I can send data to emulator and the phone now. Here is what the code looks like on the phone side:
private async void btnTest_Click(object sender,RoutedEventArgs e)
DatagramSocket dss = new DatagramSocket();
dss.MessageReceived += dss_MessageReceived;
dss.Control.DontFragment = true;
await dss.BindServiceNameAsync("49003"); // Service name == port. Why use string instead of int is a mystery
async void dss_MessageReceived(DatagramSocket sender, DatagramSocketMessageReceivedEventArgs args)
MessageDialog md = new MessageDialog("Received something");
await md.ShowAsync(); // <---- this call causes exception but I have data and I am happy
Desktop app sender code is here.
UdpClient c = new UdpClient();
c.Connect(new IPEndPoint(IPAddress.Parse("1.1.1.1"), 49003)); // real IP address here + port 49003
byte[] b = new byte[] { 1,2,3,4};
c.Send(b, b.Length);
In case of emulator I used the second address from the network settings (desktop adapter #1). For the phone I retrieved IP address from the router.

Similar Messages

  • Sender file adapter - filename containing  *  does not work

    Hi All,
    I am doing simple file-file scenario wherein my filename is something like
    MATMAS05_XI20070911-150159-088.xml 
    there are many files having similar kind of  name which are supposed to be picked
    so simply I can go on writing <b>MATMAS05_XI*.xml</b> in filename
    it is not working.. communication monitoring gives error <i>Error occurred while connecting to the FTP server "10.25.117.237:21": java.lang.NullPointerException</i>
    But  when I use character '?' then it works fine - '?'  placeholder for each extra character
    I am on SP 20.My adapter is configured properly. FTP server working fine with '?' or simple filename. So bit confused why it is not working with *
    Are there some BASIS settings which have to be in place to work it out with * ?
    All your inputs are welcome !!
    Thank You,
    Mugdha kulkarni

    Hi
    this error is not related to multimple files or sending with the * char.. you can use it
    see the below link
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    The error related to the server connection.. also check the ip address is correct or not you configured correctly or not..
    also clarfity the correct error description ..
    Chilla

  • Sending SMTP mail using Mailgun does not work from Azure, but works from on premise

    I am using Mailgun to send email from my web application. When I test the application from my development box, the e-mail is sent and received I see the logs in Mailgun site as well. However, when I publish the code to Azure and send the e-mail, it is not
    sent. I don't see it in the Mailgun logs either.
    Is Azure blocking Mailgun SMTP? I appreciate any help.
    Thanks,
    Jay

    Hi Jay,
    From your description, I guess you may send mail via SMTP. I don't recommend you use SMTP method to send mail on Azure cloud service. You can use the MailGun API to send mail, Please refer to this document (https://documentation.mailgun.com/user_manual.html#sending-via-api
    ). Or you can use Sendgrid, please see this blog (http://blogs.msdn.com/b/patrick_butler_monterde/archive/2010/10/11/sending-e-mail-from-windows-azure-part-1-of-2.aspx).
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Sending photo attachments to iphoto does not work

    Whenever I get photos in an email, and I send them to iphoto via the slideshow it never works. The photo gets "sucked" to iphoto, but when I open iPhoto it is never there. I am still save the images to my desktop and having to add them to my library. Any ideas?
    By the way, I'm using iPhoto 5

    donny,
    A frequent issue lately, has been with leftover files from Panther, or earlier mailboxes. This problem is likely related to these leftover files:
    If your mailboxes, or at least some of them, originated in Panther, I want you to read the article at the link below, and perhaps get back to me with some observations, before attempting any changes:
    http://docs.info.apple.com/article.html?artnum=301315
    This issue of leftover files applies not only to mailboxes you have previously created (which are in the Mailboxes folder the article mentioned) but can also apply to those mailboxes in account folders created prior to the upgrade to Tiger.
    Also, please report the size of each file or folder. Do not, however, try to list the files that are within the folder named Messages, that is found in each and every mailbox. It is very important to compare the size of any file named "mbox" with that of the Messages folder. If the mbox is greater in size than the Messages folder, then not all messages have been converted to be in the Messages folder.
    The path, as I am sure you know, to the Mail folder is Home/Library/Mail -- within the Mail folder are one or more account folders and the Mailboxes folder.
    The files that become the most problematic, in my opinion, are any leftover index files, and might be related to this issue with iPhoto. Let me know what you find.
    Ernie

  • Send mail in the portal does not work

    Hi guys
    I have a portal installation, where notification mails are not sent,
    and I can't find the reason. If I try to send a mail via the "Send email"
    on a users business card, I get the error: "The mail could not be
    sent to the specified recipients".
    I have created an email transport (JavaMailTransport), where I refer
    to the preconfigured Exchange system (found in System Administration
    System Configuration > Portal Content > Content Provided by SAP >
    Collaboration > Exchange) and "localhost" as SMTP server. Then on the Internet
    Information Server, we have set up a virtual smtp server.
    From the trace file, I get:
    #1.5#000BCD2368F4000C0000009700001C14000406ED5D959894#1133516454135#
    com.sap.ip.collaboration.gw.impl.transport.javamail.exception.MailSendException#
    sap.com/irj#com.sap.ip.collaboration.
    gw.impl.transport.javamail.exception.MailSendException.logException(268)#r5mas#244318#####SAPEngine_Application_Thread[impl:3]_4##0#0#Error##Plain###
    com.sap.ip.collaboration.
    gw.impl.transport.javamail.exception.MailSendException: The mail could
    not be sent to the specified recipients
    We are running SPS14.
    Any help will be rewarded.
    Best regards,
    Martin
    Message was edited by: Martin Søgaard
    Message was edited by: Martin Søgaard
    Message was edited by: Martin Søgaard

    Hi Martin,
    please check all details and links given in Error: when trying "send To" in KM folder.
    If nothing helps, additionally check if you can get some more exception information from the log viewer (stack trace). As Andreas suggested, if nothing helps or brings up a new idea, open an OSS message. In this case, please come back with the results.
    Hope it helps
    Detlev

  • How can I view my app purchases when it keeps sending me to iTunes which does not work on my iPad and yet shows activity?

    I Just received a receipt from the App Store. It was for opening one section of a game when I had already bought the full game. I went to the bottom to check on my purchases. It took me to the App Store for view history. I entered my Apple ID and then it switched me to ITune which doesn't work on my iPad! And yet it showed activity in ITunes. A few months ago I had a purchase show up that I didn't make. I contacted the developers because I love their new products so much and wanted to see if it might be a bug in their system because the confusion was within their games only. I would REALLY like to view my APP STORE history but it only lets me get to the part where you can open the apps that are showing. Is their a way to view my full APP history, with dates, money spent etc? I would love to know how to get there. Thank you, Diane Maya

    Pay attention to the numerous posts on this tonight.....try again tomorrow.
    GB

  • TS3276 My o2 email account does not work when sending from my MAC it will accept incoming mail but not send it gives me a message that  o2 account (offline) my mac I have no problem with my iPhone  or mac laptop. any suggestions please.

    My o2 email account does not work when sending from my MAC it will accept incoming mail but not send it gives me a message that  o2 account (offline) my mac I have no problem with my iPhone  or mac laptop. any suggestions please.

    Sorry for the delay...
    I did what you've told me, new account and manually copied my files from Time Machine. I had lots of permissions problems, but at the end, almost everything is in order... It seems it had to be with some of the Apple Preferences, but I can't be sure, as most of them were dumped to the trash can.
    I still don't have my Mail Rules back, unfortunately, although I did goggled some. It is a pity, as I had around 30 or 40 of them, getting my mail in order to each of its mailboxes, but it is a small price as the rest doesn't show the before syntoms.
    Thanks for the help, anyway!!

  • Why does Adobe sendnow work and the newest and greatest Adobe Send does not work?

    Why does Adobe sendnow work and the newest and greatest Adobe Send does not work? I wasted about 8 hours on trying to get Adobe Send to upload 269 files that amounted to 469MB. When it did not work I made a zip file and after a lot of wasted run time that did not work. The first situation gives little indication of when a file is loaded compared to Adobe SendNow. In both cases with Send it failed with a message like only the first 50 can be loaded. When I went and looked none of them had been loaded. With the zip file (I wanted to hide the individual files so they would not be counted) it appeared to work but very slowly and finally said it was done and I went and looked and it had done anything for oever 2 hours except a false "I'm runninng" indication.
    Thus, I took a chance with Adobe SendNow and it works great. It never gave me a limit on the amount of files nor on the size of the complete job. It shows me one file at a time when it has finished with the file uploading it. SendNow has never given me any problems.
    Why woiuld you want to change the program from SendNow to Send without the newest program being the best, fastest, user friendly program of the two? It just doesn't make sense to me. I suggest that Adobe keep SendNow working until Send is fixed. I would also suggest that SendNow and how it looks be kept, called Send, then modify Send one thing at a time until you get it to the point you need it to be for Acrobat. I have heard nothing good and now I have experienced it that Send is a piece of junk. I wasted most of my work day on giving Adobe the benefit of the doubt to find out I made a very bad decision to trust Adobe to make good decisions on the transfer of a function to another place .... both Adobe's responsibility.without making it painless for your customers that totally rely on you. Don't throw away customer confidence as it is very hard to get it back.

    Funny how you answer to "troll". (What's your handle on AT&T forums?)
    Yep! Verizon living up to it's contractual obligations by not releasing updates. Caveat emptor!
    I think there are some reasonable expectations here to keep customer's happy. When one carrier offers upgrades there is an expectation the same will happen across all the carriers. We have seen that except Big Red.
    Verizon could have said the update is in MS court months ago and stilled the voice of the disgruntled, or at least redirected it, but instead chose to be silent. Not for market share but for partial blame I think.
    We will have to agree to disagree since you only see Terms & Conditions and I, see customer satisfaction.

  • ExpressCard/34 not working in BootCamp Windows 7 64-bit. Apple's BIOS emulation does not give enough resources.

    MacBook Pro unibody, 15" 2009
    ExpressCard/34 (Card is by Transcend TS-RDF1, JMicron chip for SD card) is not working in BootCamp Windows 7 64-bit. Windows reports:
    "This device cannot find enough free resources that it can use. (Code 12)
    If you want to use this device, you will need to disable one of the other devices on this system."
    Other data points: Card works fine in Mac OSX, worked under Windows XP 32-bit (initially reported same problem, but works after reboot).
    Checking the forums there seems to be no actual device suggested to actually remove that would help the problem. And even if it was, the concept is ridiculous. What other device would you like to remove? Display adapter? Network adapter? No way. I use all available devices and don't want to compromise.
    It seems like BIOS emulation does not allocate enough resources to ExpressCard.
    Are others having the same problem?
    Does anyone have a fix for this?
    Is there anyone at Apple who cares to provide a solution?

    It is not a driver problem, but a problem in the BIOS emulated by bootcamp on some (not all) MBP models. So unless Apple fixes it in bootcamp, there is no real solution. And obviously, Apple doesn't care. They are dropping the Expresscard slot anyway.
    Unfortunately, this poster seems right: http://forums.macrumors.com/showthread.php?t=912259 :
    The 2008/2009 Macbook Pros don't allow to use the ExpressCard slot because of EFI/Bootcamp errors (Windows Vista/7 cannot allocate an IRQ to the slot). You don't need any drivers for using an ExpressCard slot on Windows, you only need the drivers for the corresponding card you are using.
    Bootcamped XP allowed to use the slot, but you could not use hot-plugging.
    And from the Sonnet site ( http://www.sonnettech.com/product/tempo_sata_express34.html ) :
    Tempo SATA ExpressCard/34 not supported under Windows 7 or Windows Vista when running on unibody MacBook Pro computers. The problem is caused by the MacBook Pro's BIOS emulation, which doesn't allocate enough resources to support certain kinds of Expresscard/34 devices, such as a SATA controller, in these operating systems.
    (added link to Sonnet's explanation)

  • Hello, I am a user of the iPhone is not the place for bi çıkıcak turkey apple brand products and product support and equipment does not work as it used to fix and send back waiting for your help. Please support me in this regard quit

    Hello, I am a user of the iPhone is not the place for bi çıkıcak turkey apple brand products and product support and equipment does not work as it used to fix and send back waiting for your help. Please support me in this regard quit

    We are all iphone users just like you.
    Do you have a question for fellow iphone users?

  • I wanted to send a push notification, unfortunately it does not work. The page will not load. Anyone know why?

    I wanted to send a push notification, unfortunately it does not work. The page will not load. Anyone know why?

    Push notifications, I believe, is only for iOS.
    If it is for iOS, take a look at Using Apple push notifications with Digital Publishing Suite | Adobe Developer Connection

  • Sending by mail an Invoice with VF02 does not work

    Hi guys,
    When using VF02 to send by mail an invoce form, the functional consultant is in trouble since it does not work. I am ABAP consultant, and before starting to debug the huge amount of lines of code behind this transaction, I think there might be a more straight solution. When setting the invoice number and entering this transaction, we accessed Goto->Header->Output. The output table to enter our fields appears. Here we set ZXXX as output type and External send like the Medium. When I press enter, the line is automatically filled with the rest of fields. Then we go to Further Data and choose the Send Immediatelly (when saving the application) option. Get back and press Save button. After it, a message "Please enter a communication strategy" is shown and the SD consultant told me that the correct option is MAIL (in fact, this option is part of the F4 help, with "email" as descriptive text) in the Communication strategy field. She told me it should be all to send a mail with the invoice. We did not fill the Logical destination nor checked "Print immediatelly" or "Release after output" checkboxes since they are not useful in this case. So when finally Save button is pressed, a message appears: " ", and then a dialog box appears with the following message: " Express document "Update was terminated" received from author "GILBERTO PARGA"". The mail received in my inbox is only a error message with title "Update was terminated" and the content is the following:
    Update was terminated
    System ID....   XXX
    Client.......   999
    User.....   SOMEBODY
    Transaction..   VF02
    Update key...   XXXXXXXXXXXXXXXXXXXXXX
    Generated....   12.05.2011, 20:37:27
    Completed....   12.05.2011, 20:37:27
    Error Info...   Output device not defined.
    The system is SAP ECC 6.0. Note that the message indicates no output device was defined, but since we are using email instead of print output, it does not matter. I have filled the field with the same result. I have read from Internet it could be a configuration trouble (the SD consultant checked it before, according herself) or even a Basis issue. Anyway, do you know the possible causes and possible solutions (like OSS Notes) for this trouble? The print output works fine, by the way.  Thank you all for your help.

    Hi,
    If you maintain method EXTERNAL SEND then in communication method you have to specify Communication strategy as CS01(Internet/letter)
    If you maintain method simple mail then in communication method you have to maintain RECIPIENT and RECIPIENT TYPE
    Also check the number range assignment for billing type for error "Update was terminated"
    you might be assigned numbers which are already consumed.
    kapil

  • IMessage send does not work

    Hi,
    a week ago i updated from iPhone 3GS to 5. Everything is working fine. The iPhone was build up from an icloud iOS 6.0.1 backup. But i have trouble with iMessage.
    I configured iMessage to receive/send messages to my phone number.
    Receiving imessages is working so far.
    Sending messages does not work at all. Only if i had a former communication with the receiver, imessage will detect it and send an imessage. if i start the communication, it does not work.
    During the update process i did not change my telephone number. I only get a new Nano-Sim-card. I tried everything including a fresh reinstall of iOS, re-activation of imessage and so on.
    My iPhone 3GS is still available in my registered products. It was also configured with same telephone number under my AppleID. But the SIM-card is deactivated and iPhone is shutdown and resetted after updating to iPhone 5.
    Do you have any suggestions?

    See:
    iOS: Troubleshooting FaceTime
    Are the registered with Messages? You can only Message among iPods, iPhone and iPzads with the messages app.

  • I would like a refund now. I bought this service this morning and it does not work as advertised. Reliable is not what I would use to describe this product. Cancel my subscription/refund my money and send me an email to the address I used when I signed up

    I would like a refund now. I bought this service this morning and it does not work as advertised. Reliable is not what I would use to describe this product. Cancel my subscription/refund my money and send me an email to the address I used when I signed up.

    Hi,
    I just checked your account.
    Your Adobe Export pdf service has been cancelled & refunded.
    Regards,
    Florence

  • After sending sound from find my iphone, now ipad does not work

    after sending sound from find my iphone, now ipad does not work
    it can't be unlock and scrren is blank, only siri works

    Try a reset: hold down the home button along with the sleep/wake button until you see the apple, then let go.

Maybe you are looking for

  • HT1414 My iPad 2 is not updated

    My iPad 2 is not updating... I don't see any update ever on my iPad 2

  • OIA jobs.xml constrain execute of file import on only one of two app server

    I am trying to get the jobs.xml and scheduling-context.xml files to fire an import job on one of the two app servers. There are two application servers utilizing the same shared database. Files to import into OIA reside on one of the two application

  • How do I authorise a new computer on i-tunes?

    How do I authorise a new computer on i-tunes?

  • Is Verizon getting rid of Unlimited?

    Just yesterday, the Device Payment Program was discontinued. Beginning 7/13/14, the Device Payment Program will no longer be available for new orders. If you'd like to purchase a new phone or tablet on an installment plan, you may be eligible to part

  • Exchange e-mail syncronicity

    Hi, I am using exchange for my hotmail accounts on my iPhone 4. I wondered if there was any way of displaying the same e-mails on my online hotmail and on my iphone, i'll explain..... When using my iphone, if i move an email from my inbox to another