Datagram socket is not working

Hi,
I made a datagram socket and try to send a byte array. but when I called socket.send method it returned an error that an operation is attempted on invalid socket. What I am missing
here is my code...
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="480" height="262">
<mx:Script><![CDATA[
private var udp:DatagramSocket = new DatagramSocket();
private var address:String = "255.255.255.255";
private var port:uint = 200;
private function OnSend():void
  udp.addEventListener(DatagramSocketDataEvent.DATA, RecvUdpDataHandler);
  var byteArray:ByteArray = new ByteArray();
  byteArray.endian = Endian.LITTLE_ENDIAN;
  byteArray.writeMultiByte("dvcrNetshare", "US-ASCII");
  byteArray.writeUnsignedInt(123);
  udp.send(byteArray, 0, byteArray.length, address, port);
  udp.receive();
private function RecvUdpDataHandler(obj:DatagramSocketDataEvent):void
  var str:String = obj.srcAddress;
  var srcport:int = obj.srcPort;
]]></mx:Script>
<mx:Button x="206" y="134" label="Send" click="OnSend()"/>
</mx:WindowedApplication>
Thanks

You can call Apple and appeal their decision if you wish to (or go back to the store and ask for a supervisor or manager to assess your device - basically dispute the genius claim and ask to have it bumped up the chain of command).  Ultimately though they are the ones who decide if your damage is a warranty-related defect or something caused by accidenatal damage or abuse.  If they say you are not eligible for a warranty repair, then you pay the fee for an out of warranty repair.

Similar Messages

  • Windows 8.1 socket forwarding not working

    At one of our customers we had to add an enhanced generic Client application with the vpn socket forwarding mode. With this application we were able to open a special website on one internal server. Last week we updated to SP4 and saw that the socket forwarding
    does not work on Windows 8.1. On Windows 7 everything is fine. Can anyone help?
    Unfortunately we can not use the normal web application for this website. Some website features doesn't work this way.
    Server hostname: srvxy
    Port: 80
    Executable: iexplore.exe
    Arguments: http://srvxy/site

    Hi Zuegi,
    have you found way around this problem?
    We have run onto this same issue with exactly same published application.

  • Headphone socket is not working and apple wants replacement cost

    Hi my iphone 5 is still in gurantee , suddenly its headphone socket stop working. When i plug headphones nothing happens. I visited apple store the guy said that this is due to a dent on my phone and i have to pay $260 replacement charge. But that little dent is 6 months old and socket stopped working few days ago. What should i do ?

    You can call Apple and appeal their decision if you wish to (or go back to the store and ask for a supervisor or manager to assess your device - basically dispute the genius claim and ask to have it bumped up the chain of command).  Ultimately though they are the ones who decide if your damage is a warranty-related defect or something caused by accidenatal damage or abuse.  If they say you are not eligible for a warranty repair, then you pay the fee for an out of warranty repair.

  • Wan? sockets? not working in other countries

    Hello all,
    I have two computers one of which is set up as a server that listens to clients using sockets.
    ok here is what happens:
    --> when I connect to the server through lan - everything is fine
    --> when I connect to the server using my neighbours wireless network - everything is fine
    --> when my friend form Europe tries to connect to my server - BAM... , the page does not load...(I live in Canada).
    I dont know what can be the cause of this. I tried to research such terms as WAN which I became aware of today, but I still dont fully understand concepts related to it.
    Here is what displays when I go to my routers website:
    System
    Uptime      4day:2h:46m:49s
    Firmware Version      v1.2.5
    Wireless Configuration
    Mode      AP
    Band      2.4 GHz (B+G)
    SSID      My networkk
    Channel Number      11
    Encryption      WEP 64bits
    BSSID      00:02:72:4f:b6:bb
    Associated Clients      0
    TCP/IP Configuration
    Attain IP Protocol      Fixed IP
    IP Address      192.168.1.254
    Subnet Mask      255.255.255.0
    Default Gateway      192.168.1.254
    DHCP Server      Enabled
    MAC Address      00:02:72:4f:b6:bb
    WAN Configuration
    Attain IP Protocol      DHCP
    IP Address      74.56.2XXX
    Subnet Mask      255.255.255.0
    Default Gateway      74.56XXXXX
    MAC Address      00:02:72:4f:b6:bc
    Could anyone explain to me what may be the cause of the above issue? Is my computer connecting to internet through WAN? If so, may this be the source of my problem?
    Im still a noobie when it comes to networking so any little hints wil do.
    Paul.

    beloxx wrote:
    If youd like, go to belox.gotdns.com and see whether the website loads.
    Id appreciate it if you could tell me if it does load or not.It does not. I am now with the ISP using phone lines.
    Here is what I think. You and your neighbor are on the same segment with the cable ISP.
    I can bet his IP address is very similar to yours.
    Your ISP does not allow you to operate servers. It's written in the contract.
    They probably block the ports you mention somewhere up-stream inside their network.
    Your server cannot be seen from that level up, but your neighbor is bellow that level.

  • Sockets: setSoTimeout() not working with Scanner

    I'm implementing the timeout feature for a server, and I've run into a problem. My server reads from the socket input stream using a Scanner, and I've set the socket timeout using Socket's setSoTimeout() method. This is supposed to throw a SocketTimeoutException, but instead, the Scanner is throwing a NoSuchElementException first (because it's not getting the right input!) and the SocketTimeoutException never gets thrown. If I use InputStream's read(), I don't have this problem (SocketTimeoutException gets thrown properly). Here's how my code is organized:
    Accept connection.
    Set so timeout.
    Spawn thread with socket as its argument.
    - Try:
    - Decode request from the socket's input stream.
    - Catch SocketTimeoutException:
    - Send timeout message to client.
    Close connection.
    Do you know a way around this issue besides replacing Scanner with read()? Or did I do something wrong?
    Ben

    If it were me I'd catch the
    NoSuchElementException first (because it's notand add a comment saying what was going on.
    Do you know a way around this issue besides replacingNope
    Scanner with read()? Or did I do something wrong?No you haven't done anything wrong. Just catch the exception
    >
    Ben

  • My headphone socket is not working., my headphone socket is not working.

    I've tried loads of headphones that i know work and made sure that the plug is in all the way. Any suggestions please!

    Jimbantumi wrote:
    I've tried loads of headphones that i know work and made sure that the plug is in all the way. Any suggestions please!
    Take it to an Apple Store.  We can't help you fix a hardware problem.

  • Main Socket Not Working, But Line is via Another L...

    Our main socket is not working -- ie, when a phone is plugged in, there is no signal/dial tone.  However, the line still works via a line box in another room.  Is this a BT fault?  If not, how can I get it fixed?  Thanks.

    Hi Elsiejean
    It is possibly not a fault some properties/businesses have multiple service points/sockets in, you can check this by calling BT and request to check this,did you pay a connection charge? if not BT will have carried out a check on the property prior to you moving in and for example may have found multiple lines so the main one you say that does not work may have been ceased meaning an engineer/installation charge would apply and the latter which you say worked may have just been a stopped line or takeover connection hence they choose to use that one,i could be wrong if it's only one line your main point may be broke does the working socket have a BT openreach logo on or is it a extension.also BT have supplied you as agreed so if you do need an extension or other line already present activating you would have to pay 127.99
    Inherent omniscience - the ability to know anything that one chooses to know and can be known

  • Phone not working after infinity installation

    I have just moved my phone and broadband from Sky to Bt and the engineer called this morning to complete the installation. I have 2 phone sockets. When I had broadband originally installed it was before the days of filters so it required a BT engineer visit. As my computer was upstairs the engineer 'back wired' the sockets (apologies if I have the terminology wrong) so the adsl faceplate was fitted to the upstairs wired extension. Today, the Openreach engineer was initially puzzled but said he would be able to install the Infinity faceplate on the upstairs extension as originally fitted. He checked the line was ok, checked the broadband connection and put the faceplate back on the 2 sockets. After he left I tried to make a call via the downstairs socket without success and I assumed that the phone line had not yet been changed back to BT. This afternoon I received an email from BT advising that my phone was now active but the downstairs socket will not work. I am able to make and receive calls on the upstairs extension. I have just spent 40 minutes on the phone to BT, explaining the problem to 4 different people. Each BT employee advised that it would cost £130 for an engineer to revisit my house to correct the fault that they had somehow caused! To say I'm frustrated is an understatement. Has anyone any suggestions how I can resolve the problem. All 4 BT employees did not really understand the problem. I would appreciate any help.
    Solved!
    Go to Solution.

    You cannot use a phone connection for broadband when on Infinity. The only connection that can be used is that which comes from the home hub 3, which is near the Openreach modem.
    You have to use wireless, run an Ethernet cable, or use Powerline adapters.
    You phone should work if it is plugged into the botton socket of the new Infinity master socket.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Iphone 4 headphone socket not working headphones won't go all the way in

    My iphone 4 headphone socket not working, the headphones won't go all the way in? any help, ideas?

    I bough a new ipad two a few feels ago and still haven't managed to used any headphones with it.
    It's very annoying as I'm currently in hospital and will be for a few more weeks and this being the reason I bought it!! Now I have to have it on very low volume and not use it in the evening  

  • IPhone 4 ear speaker not working after 2 restores and cleaning the headphone socket.

    Hi,
    I know this problem is not uncommon, but here goes...
    I have an iPhone 4 which was running iOS 5.1.1 a few days ago when the ear speaker stopped working.  I cant hear the other person when I make or recieve a call, but nothing else is wrong with the phone.  It is 18 months old.
    I've searched the discussions and seen some of the suggestions.  I tried cleaning out the headphone socket, with no luck.  I then tried a full restore and update to iOS 6.  This appeared to have worked.  I tried 2 calls and I could hear the other person.  I then left the phone alone for a couple of hours and when I tried it again, it had stopped working again.
    I have since done another full restore but the speaker is still not working at all.  The fact that it worked after the first restore suggests it's something simple or software related but I have no idea what else to try other than getting it repaired in a shop.  The problem is I am in Japan where my network (Softbank) and an independent repair shop have both quoted me the equivalent of $176 / £110 to fix it.
    Does anyone know anything else I can try before I give in and end up shelling out this ridiculous cost for something that is probably a 20 minute fix?
    Any help would be appreciated.
    Thanks

    I have the exact same problem with my ear speaker after my IOS 6 upgrade. My speakers work, bluetooth works, the earphones work, but the ear speaker doesn’t work. I noticed this IMMEDIATELY after the upgrade was completed. I also have the following problems:
    -Very slow call connect time. 30 - 45 seconds just to connect is typical. Signal strength is 5 bars (ATT)
    -Problems attaching to known networks
    -Very slow internet browsing with many timeouts on both the ATT 3G service and known Wi-Fi networks.
    - My camera was missing after the IOS 6 upgrade. I restored that from Restrictions inside of the Settings App
    - Music was so screwed up it was easier to just restore it
    I went to the Apple store hoping to get some support. Between my wife, my son, and myself we have purchased 4 iPhones and an iPad over the last few years with plans to purchase another iPad in a month or so. So it’s not like I' not familiar with Apple Technology and their typical level of support.
    The individual who waited on me was rude and condescending. He insisted that all of the problems were hardware related or ATT’s fault, or my fault. He further asserted that IOS 6 had NOTHING to do with any of the problems. I pointed out that it would be quite a coincidence for my hardware to break, for ATT to have network problems, and for me to suddenly forget how to use an iPhone at the same exact moment that IOS 6 had been installed. He maintained his position and offered to sell me another phone.
    I don’t expect the folks in the store to reprogram the OS. Mistakes happen. I’m going to guess that Apple’s OS programmers are already working on a fix for many of the IOS 6 complaints that are easy to find on Google. Assigning blame to the customer and denying any responsibility is not a model for success or customer service. I’m sure Apple wouldn’t accept that kind of excuse from their component manufacturers and don’t think it is how they should deal with their customers. Further, Apple wants to own the device. They want to control the apps, the OS, battery, the delivery channel. I’m good with that so long as when there is a problem, they own that as well.
    And BTW… I’m not including the maps in my list of issues with IOS 6 because I kind of like the new maps and am willing to give Apple the benefit of the doubt. I believe that their map service will get a lot better in a hurry.

  • Writing to socket with setinterval not working in windows

    Hello Everyone,
    I'm trying to stream a big file to my server, and was using 'setInterval' just fine to slowly upload it from OS X, but when I moved my AIR application to a Windows Vista computer, it no longer worked. I started doing some investigation and found out that 'socket.writeBytes' function was not working inside of 'setInterval'. I then moved the code inside of 'setInterval' to outside of it and everythink worked, but obviously it was no longer streaming. Thinking there was something wrong with 'setInterval', I tried it  without the 'socket.writeBytes' function in it, and it started working fine.
    Not sure what is happening, but it seems like a bug in the air.Socket code.
    Here is my code:
        var socket = new air.Socket();
        socket.addEventListener(air.Event.CONNECT, function(e) {
            var stream = setInterval(function() {
                   socket.writeBytes(filePart, 0, filePart.length);
                    if (isDone) {
                        clearInterval(stream);
            }, 1000);
        socket.connect("myServer", 80);
    P.S. I also tried using 'air.Timer' and it was the same behavior as 'setInterval'.
    Thanks for any help.

    Hi,
    You should use the flush method:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/Socket.html#f lush%28%29
    "Flushes any accumulated data in the socket's output buffer.
    On some operating systems, flush() is called automatically between execution frames, but on other operating systems, such as Windows, the data is never sent unless you call flush() explicitly. To ensure your application behaves reliably across all operating systems, it is a good practice to call the flush() method after writing each message (or related group of data) to the socket."
    I hope this helps!
    -Erica

  • Flex Socket not working in Android Gingerbread

    Hi,
    I am having this mobile application where it will connect to Air ServerSocket deployed in desktop machine. The problem is socket connection is not working in my device running Android 2.3.5 while it id working on the other device running 4.2.2. Please help.
    Best regard,
    Victor

    do your IE has installed flashplayer plun-in? if so, is plug-in enabled?

  • I want to install an old airport express, the ones which are directly plugged into the socket - but it does not work with Maverick or Snow Leopard - can I configure it with a windows pc?

    I want to install an old airport express, the ones which are directly plugged into the socket - but it does not work with Maverick or Snow Leopard - can I configure it with a windows pc?

    The Mac running Snow Leopard should be able to configure virtually any version of the AirPort Express.
    Tell us what steps that you are taking to configure the Express and what happens after each step.

  • TC-2095 sockets not working

    Several sockets on my TC-2095 card are not working.  I can get some of them to work by moving the plugs around until it achieves contact with the socket connectors.  I assume that there is a method to "tighten" the sockets to achieve reliable connections when inseting a thermocouple plug.  Can you provide instructions on how to fix this problem?

    Actually, there is not a way to tighten the thermocouple miniconnectors on the TC-2095.  I just took one apart to verify, but the thermocouple miniconnectors are each independent and are closed.  How tightly a thermocouple is held is determined by how tightly the copper connectors inside are pressed against it.  There is no way to tighten those copper connectors such that they press down tightly again.  The individual thermocouple miniconnectors cannot be opened and modified.
    If your TC-2095 is old, this was most likely caused by repeated wear on the copper, such that the copper does not spring back as tightly as before.  You could RMA the device noting that the connections are not holding thermocouples as tightly as it should.
    To set up an RMA you can call in at 800-531-5066 to speak with a customer service representative or create a service request online at ni.com/support
    Eric S.
    AE Specialist | Global Support
    National Instruments

  • SOCKET NOT WORK PHONE (works on emulator)  ,,, freezes at Connector.open

    Hi everyone, dukes to those who can ease my brain pain.
    I'm using the example SocketMIDlet app that comes with Sun JavaTM Wireless Toolkit for CLDC Version 2.5.
    Client and server works ok on emulator.
    THEN I attempt running server on PC and Client on Nokia N95.
    IP address in Client's Connector.open("socket://...) is the IP address shown when I do IPCONFIG on my PC. My PC is connected to the internet via ADSL router.
    When I run the client on the phone, it asks for access point, I select
    1) vodafoneLive (i.e. internet access point.) Is this correct? is it possible to socket over the internet (dum question I know) ,,,
    or should I connect to
    2) my wireless network access point instead (where the pc is connected to)
    although that doesnt work either, but just want to know if point 1 is actually possible.
    See code below, it seems to be freezing at the Connector.open statement, because the textfield is not even updating with "connected..." and nothing is reported at the server end.
    No exceptions are reported.
    Tested on Nokia emulator, connected ok, but send from client didnt work, so added a flush statement in, so that's good now. But still, the connect is what is not working.
    Anyone come across this before ????
    Here is the code... the client and server (2nd and 3rd procs below) are the interesting ones....
    Much appreciated if someone can help,,, suspect a setup problem? but who knows...
    *PLEASE HELP*
    SocketMIDlet.java
    {code}
    * @(#)SocketMIDlet.java     1.6 03/10/29
    * Copyright (c) 2000-2003 Sun Microsystems, Inc. All rights reserved.
    * PROPRIETARY/CONFIDENTIAL
    * Use is subject to license terms
    import javax.microedition.midlet.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import java.io.*;
    public class SocketMIDlet extends MIDlet implements CommandListener {
    private static final String SERVER = "Server";
    private static final String CLIENT = "Client";
    private static final String[] names = {SERVER, CLIENT};
    private static Display display;
    private Form f;
    private ChoiceGroup cg;
    private boolean isPaused;
    private Server server;
    private Client client;
    private Command exitCommand = new Command("Exit", Command.EXIT, 1);
    private Command startCommand = new Command("Start", Command.ITEM, 1);
    public SocketMIDlet() {
    display = Display.getDisplay(this);
    f = new Form("Socket Demo");
    cg = new ChoiceGroup("Please select peer",
    Choice.EXCLUSIVE, names, null);
    f.append(cg);
    f.addCommand(exitCommand);
    f.addCommand(startCommand);
    f.setCommandListener(this);
    display.setCurrent(f);
    public boolean isPaused() {
    return isPaused;
    public void startApp() {
    isPaused = false;
    public void pauseApp() {
    isPaused = true;
    public void destroyApp(boolean unconditional) {
    if (server != null) {
    server.stop();
    if (client != null) {
    client.stop();
    public void commandAction(Command c, Displayable s) {
    if (c == exitCommand) {
    destroyApp(true);
    notifyDestroyed();
    } else if (c == startCommand) {
    String name = cg.getString(cg.getSelectedIndex());
    if (name.equals(SERVER)) {
    server = new Server(this);
    server.start();
    } else {
    client = new Client(this);
    client.start();
    {code}
    Server.java
    {code}
    * @(#)Server.java     1.6 03/07/15
    * Copyright (c) 2000-2003 Sun Microsystems, Inc. All rights reserved.
    * PROPRIETARY/CONFIDENTIAL
    * Use is subject to license terms
    import javax.microedition.midlet.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import java.io.*;
    public class Server implements Runnable, CommandListener {
    private SocketMIDlet parent;
    private Display display;
    private Form f;
    private StringItem si;
    private TextField tf;
    private boolean stop;
    private Command sendCommand = new Command("Send", Command.ITEM, 1);
    private Command exitCommand = new Command("Exit", Command.EXIT, 1);
    InputStream is;
    OutputStream os;
    SocketConnection sc;
    ServerSocketConnection scn;
    Sender sender;
    public Server(SocketMIDlet m) {
    parent = m;
    display = Display.getDisplay(parent);
    f = new Form("Socket Server");
    si = new StringItem("Status:", " ");
    tf = new TextField("Send:", "", 30, TextField.ANY);
    f.append(si);
    f.append(tf);
    f.addCommand(exitCommand);
    f.setCommandListener(this);
    display.setCurrent(f);
    public void start() {
    Thread t = new Thread(this);
    t.start();
    public void run() {
    try {
    si.setText("Waiting for connection");
    scn = (ServerSocketConnection) Connector.open("socket://:5000");
    // Wait for a connection.
    sc = (SocketConnection) scn.acceptAndOpen();
    si.setText("Connection accepted");
    is = sc.openInputStream();
    os = sc.openOutputStream();
    sender = new Sender(os);
    // Allow sending of messages only after Sender is created
    f.addCommand(sendCommand);
    while (true) {
    StringBuffer sb = new StringBuffer();
    int c = 0;
    while (((c = is.read()) != '\n') && (c != -1)) {
    sb.append((char) c);
    if (c == -1) {
    break;
    si.setText("Message received - " + sb.toString());
    stop();
    si.setText("Connection is closed");
    f.removeCommand(sendCommand);
    } catch (IOException ioe) {
    if (ioe.getMessage().equals("ServerSocket Open")) {
    Alert a = new Alert("Server", "Port 9999 is already taken.",
    null, AlertType.ERROR);
    a.setTimeout(Alert.FOREVER);
    a.setCommandListener(this);
    display.setCurrent(a);
    } else {
    if (!stop) {
    ioe.printStackTrace();
    } catch (Exception e) {
    e.printStackTrace();
    public void commandAction(Command c, Displayable s) {
    if (c == sendCommand && !parent.isPaused()) {
    sender.send(tf.getString());
    if ((c == Alert.DISMISS_COMMAND) || (c == exitCommand)) {
    parent.notifyDestroyed();
    parent.destroyApp(true);
    * Close all open streams
    public void stop() {
    try {
    stop = true;
    if (is != null) {
    is.close();
    if (os != null) {
    os.close();
    if (sc != null) {
    sc.close();
    if (scn != null) {
    scn.close();
    } catch (IOException ioe) {}
    {code}
    Client.java
    {code}
    * @(#)Client.java     1.6 03/07/15
    * Copyright (c) 2000-2003 Sun Microsystems, Inc. All rights reserved.
    * PROPRIETARY/CONFIDENTIAL
    * Use is subject to license terms
    import javax.microedition.midlet.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import java.io.*;
    public class Client implements Runnable, CommandListener {
    private SocketMIDlet parent;
    private Display display;
    private Form f;
    private StringItem si;
    private TextField tf;
    private boolean stop;
    private Command sendCommand = new Command("Send", Command.ITEM, 1);
    private Command exitCommand = new Command("Exit", Command.EXIT, 1);
    InputStream is;
    OutputStream os;
    SocketConnection sc;
    Sender sender;
    public Client(SocketMIDlet m) {
    parent = m;
    display = Display.getDisplay(parent);
    f = new Form("Socket Client");
    si = new StringItem("Status:", " ");
    tf = new TextField("Send:", "", 30, TextField.ANY);
    f.append(si);
    f.append(tf);
    f.addCommand(exitCommand);
    f.addCommand(sendCommand);
    f.setCommandListener(this);
    display.setCurrent(f);
    * Start the client thread
    public void start() {
    Thread t = new Thread(this);
    t.start();
    public void run() {
    try {
    sc = (SocketConnection) Connector.open("socket://155.35.122.238:5000");
    si.setText("Connected to server");
    is = sc.openInputStream();
    os = sc.openOutputStream();
    // Start the thread for sending messages - see Sender's main
    // comment for explanation
    sender = new Sender(os);
    // Loop forever, receiving data
    while (true) {
    StringBuffer sb = new StringBuffer();
    int c = 0;
    while (((c = is.read()) != '\n') && (c != -1)) {
    sb.append((char) c);
    if (c == -1) {
    break;
    // Display message to user
    si.setText("Message received - " + sb.toString());
    stop();
    si.setText("Connection closed");
    f.removeCommand(sendCommand);
    } catch (ConnectionNotFoundException cnfe) {
    Alert a = new Alert("Client", "Please run Server MIDlet first",
    null, AlertType.ERROR);
    a.setTimeout(Alert.FOREVER);
    a.setCommandListener(this);
    display.setCurrent(a);
    } catch (IOException ioe) {
    if (!stop) {
    Alert a = new Alert("Client", "Franco IOException: " + ioe.toString(),
    null, AlertType.ERROR);
    a.setTimeout(Alert.FOREVER);
    a.setCommandListener(this);
    display.setCurrent(a);
    ioe.printStackTrace();
    } catch (Exception e) {
    Alert a = new Alert("Client", "Franco Exception: " + e.toString(),
    null, AlertType.ERROR);
    a.setTimeout(Alert.FOREVER);
    a.setCommandListener(this);
    display.setCurrent(a);
    e.printStackTrace();
    public void commandAction(Command c, Displayable s) {
    if (c == sendCommand && !parent.isPaused()) {
    sender.send(tf.getString());
    if ((c == Alert.DISMISS_COMMAND) || (c == exitCommand)) {
    parent.notifyDestroyed();
    parent.destroyApp(true);
    * Close all open streams
    public void stop() {
    try {
    stop = true;
    if (sender != null) {
    sender.stop();
    if (is != null) {
    is.close();
    if (os != null) {
    os.close();
    if (sc != null) {
    sc.close();
    } catch (IOException ioe) {}
    {code}
    Sender.java
    {code}
    * @(#)Sender.java     1.4 03/03/02
    * Copyright (c) 2000-2003 Sun Microsystems, Inc. All rights reserved.
    * PROPRIETARY/CONFIDENTIAL
    * Use is subject to license terms
    import javax.microedition.midlet.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import java.io.*;
    public class Sender extends Thread {
    private OutputStream os;
    private String message;
    public Sender(OutputStream os) {
    this.os = os;
    start();
    public synchronized void send(String msg) {
    message = msg;
    notify();
    public synchronized void run() {
    while(true) {
    // If no client to deal, wait until one connects
    if (message == null) {
    try {
    wait();
    } catch (InterruptedException e) {
    if (message == null) {
    break;
    try {
    os.write(message.getBytes());
    os.write("\r\n".getBytes());
    os.flush();
    } catch (IOException ioe) {
    ioe.printStackTrace();
    // Completed client handling, return handler to pool and
    // mark for wait
    message = null;
    public synchronized void stop() {
    message = null;
    notify();
    {code}

    ok, apologies to anyone who has read this and gotten a headache from my stupidity... testing with a work collegue, who you can guess called me an idiot, advised that I was trying to use the ip address as known within my home lan, and that I needed to use the ipaddress as seen externally.
    So, looked at my linksys router admin and found the external ip address. Tested pinging to it, all good. BUT, cannot telnet to that ipaddress port of the java server running on the pc.
    So at this point, the problem is not j2me related.... have started another thread to look at THAT problem, when that is solved, I'm sure there will STILL be problems here, or maybe not... so once that link is addressed, I'll come back here.

Maybe you are looking for

  • Delete original file (from camera)

    Hi all, I use iPhoto and Photoshop on my Mac for different purposes: iPhoto for family events and travel that I won't be doing much (if any) editing to, and Photoshop (Elements 7) for my hobby photography pictures. I got on Photoshop this morning to

  • How to delete the Monitor Previous Items list ?

    Hello, I have in my monitor menu, the one in the menu bar, 2 lines : 1920x1080 60 Hz Millions Call them Last and Last-1 When I use Last-1 all my display becomes a bit blurred, specially the fonts in all apps. But it is LAST which has the check mark..

  • "Browser is not supported" message accessing a URL to an Image

    Hi. I have a dynamically generated URL, which points to an image (GIF) created based on a BusinessGraphics chart. When I access this URL with Internet Explorer (6.0.2900), no problem at all. The image loads and is displayed on IE. But, when I set thi

  • IPod Playlists & Ratings ~ Restore How  To iTunes?

    Hi, I have a 40GB iPod Photo which I am sad to say is now completely full, and can no longer hold all of my iTunes tracks. Unfortunately, I had to do a fresh install & Erase of my G5 iMac and therefore lost my playlists and ratings. I did back them u

  • Strange memory behaviour using the System.Collections.Hashtable in object reference

    Dear all, Recently I came across a strange memory behaviour when comparing the system.collections.hashtable versus de scripting.dictionary object and thought to analyse it a bit in depth. First I thought I incorrectly destroyed references to the cla