Help Joining Chat...

I have an Intel iMac 20 inch, duo core. Whenever somebody tries to IM me in iChat it freezes up for a second. Then I get the error message "An error occurred while attempting to join the chat." When I press okay to this it shows the message they sent me. There's nothing wrong, this is just really irritating. Can you please help me with this? I tried searching for people getting the same message, and got no answers.
Thank you.
Sam

Hi,
This is more likely an issue with port 5190 on the UDP Protocol if we are talking about Group Text chats.
Ordinary (1-1) text chats happen on the same port but on the TCP protocol. Group chats or those where you send pics or files move to "Direct Chats" on the UDP protocol.
If your modem or router is Port Forwarding this port on both Protocols where is is specified on your device then try changing the Login and there fore TCP prot in iChat from port 5190 to 443.
This is done in iChat > Preferences > Accounts (named account) > Server Settings tab.
1:33 PM Tuesday; June 12, 2007

Similar Messages

  • Please HELP join these 2 iTunes folders in Windows 7 preserving album artwork & tags (discussion reply requested)

    (Discussion Reply Requested ) Please HELP join these 2 iTunes folders in
    Windows 7 preserving album artwork & "tags"
    I have searched and not found an up to date understandable answer as how
    to join 2 working portable same (apple ID) user iTunes folders into one itunes folder
    while above all else preserving hand edited Abum Artwork and hand edited tags.
    ( It was many hours of hand edited added Album Artwork and editing of tags )
    Situation is Windows 7 ( 64 bit ) with current iTunes installed ( 2014-03-17 )
    The hard drive crashed and the old \iTunes folder and all old contents have been copied and backed up.
    The windows 7 64 bit and latest iTunes 64 bit has been re-installed cleanly ( no old music added )
    Music from the iTunes cloud was then added/downloaded into iTunes
    Now \itunes has 40 gig of music available to play.
    Now I want to join the currently installed working \itunes folder ( 40 gig of music )
    with  the old saved \itunes folder  ( 100 gig of music ) into just one \iTunes folder
    with preserving the current Album Artwork and editing of "tags" of both folders.
    I have seen previous answers that use words like " consolidate " , " export / import ",
    " merge " , " apple home sharing " , " use explorer to copy  ..." , ect
    none of which mentioned if the current Album Artwork
    or tags survive unchanged from their current "specially edited" status.
    I know their may be the ineviatable "duplicates", but there seems
    to be several ways to handle them.  ( If you know the best way to
    prevent or remove duplicates in this situation with joining two
    iTunes folders in Windows please include that information also ).
    Please provide an explanation of how to join these 2 iTunes folders
    in Windows 7 into one \iTunes folder while preserving Album Artwork and tags.

    Mike, thanks for the response. I will try this. I'll have to dig around here too, bc I want to know more about how I can import a windows xml file (while replacing the drive paths) and it creating a seperate itunes library with the pointers on the mac. Essentially, I have 2 libraries and there may not be a way around this with a windows machine and a mac - ive read plenty on Choose library on open, and mac to mac, windows to windows.
    I also need to know more about what is getting stored in the album art folders. I believe it seems that when you select all, and copy the image in the artwork get info page its actually embedding these images in the files themselves, but if you paste into the left bottom artwork display pane its just adding where?? If I deleted the contents of this folder what would happen, should I not be copying this content?
    If I update the images on the mac and swap out the drive paths and move the external drive back to the windows box, will i lose any updates I did while on the mac?
    Good suggestion though, I'll try this out.

  • How on earth do you contact adobe - i lost my serial number before registering my standalone software...the phone service is offshore and not very helpful - the chat (i thought it was realtime) has been slow - if i understand, you need your proof of purch

    how on earth do you contact adobe - i lost my serial number before registering my standalone software...the phone service is offshore and not very helpful - the chat (i thought it was realtime) has been slow - if i understand, you need your proof of purchase and they will issue a serial number

    To help address performance issues the Identi-e web site is currently down for maintenance.  If you are trying to redeem a product code to obtain your serial number for the Student & Teacher edition of our software you will currently be unable to do so. We would recommend installing the software in trial mode for the moment until the maintenance period is complete.

  • Maximum Activations Exceeded (no help from chat or phone support)

    I can not get Muse to activate on my computer since (around) the time CC was released.  At first I assumed it was a problem with my install so I uninstalled and reinstalled and it didn't work.  I then gave it a few days thinking there was something on the Adobe side that would go away.  Every couple of days I would try and get the same error but all my other CS6/CC products open just fine (that I have tried, I have them all installed but have not actually tried every one).  It is only installed on this one computer so I know I should have at least one additional activation for another computer, not that I need that for this computer. 
    I then sent and email to tech support and have not heard back in a few days so once again I try to no avail.  I then search the web and see there is a fix for people in the same situation and I follow those instructions do delete three folders (2 in the one folder, 1 in another). I try and it does not work.  So I try to contact Chat support and after wasting a lot of time I am finally told that they can't help with technical matters and I should call tech support.  I try them, he helps, asks me to uninstall and reboot then reinstall after we tried a few other minor things (had me log out of the CC app).  I proceeded to uninstall, remove the same folders as before, reboot, reinstall and then go to activate.  No luck! I was told not to call tech support back but to go to chat which further frustrated me as they are taking me full circle.  He also suggest that I can go the forums so here I am.
    I am very frustrated and without a product because of crappy DRM/cloud issues and I have no choice in the matter besides canning the software.  Thanks in advance for any help anyone can provide...

    Hi Parikshit,
    My normal Muse is fine now, but I'm getting the same problem as before when I try to login to the Adobe Muse Prerelease. Can you look into the problem.
    Thanks,
    Date: Mon, 7 Oct 2013 09:17:20 -0700
    From: [email protected]
    To: [email protected]
    Subject: Maximum Activations Exceeded (no help from chat or phone support)
        Re: Maximum Activations Exceeded (no help from chat or phone support)
        created by p_nath in Help with using Adobe Muse CC - View the full discussion
    Please try to activate Muse on your system now.
    Cheers
    Parikshit
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5741935#5741935
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5741935#5741935
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5741935#5741935. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Help with using Adobe Muse CC at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Seibel Query help : -  Joining Order table with Asset or CX_ACTION table.

    Hi Team
    I need help joining the Order table with the Asset table
    or the Order table with CX_ACTION table to
    Can i get reference on this .
    select x.x_msisdn,
    x.x_product_name,
    x.x_action,
    x.x_status_outcome,
    a.recovered_dt,
    x.x_amount,
    x.created,
    x.x_number_retries,
    o.ORDER_NUM "FMW Order No",
    DECODE(FULFLMNT_STATUS_CD , 'Failed','Failed', o.STATUS_CD) "Order Status"
    from
    siebel.cx_action x,
    siebel.s_order o,
    siebel.s_asset a
    where a.row_id = x.x_asset_id
    and x.created > to_date('08/01/2013 08:00:00', 'dd/mm/yyyy hh24:mi:ss')
    and x.created < to_date('09/04/2013 07:50:00', 'dd/mm/yyyy hh24:mi:ss')
    Regards

    I'm not familiar with Seibel or any of these tables but right off the bat I'd suggest you're missing a join predicate to your s_order table. This could give you far more rows than you're expecting.
    Aside from that you haven't told us what problems you are having. An error? Wrong results? Performance?

  • URGENT!! help on CHAT APPLET

    i've created a chat Applet as client. i want it to be used like this
    -user login
    -choose chat room
    -and start applet.
    what i've done now is chat applet. i want it to be used by multi user.
    and display online users name or username.
    but now it can only detect one user. if i run many applet concurrently using my pc, it can't detect other user's name.
    how to do that?
    please someone help me!!

    this is my codes.
    it can be compiled but nothing appears when i run appletviewer ChatApplet2.html
    what happen?
    import java.lang.*;
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    public class ChatApplet2 extends Applet implements ActionListener,Runnable
    String user;
    String msg;
         String chatServer;
         ObjectOutputStream output;
         ObjectInputStream input;
         Socket client;
         public void init() {
              super.init();
              //{{INIT_CONTROLS
              setLayout(new BorderLayout(0,0));
              addNotify();
              resize(518,347);
              setBackground(new Color(12632256));
    displayArea = new java.awt.TextArea("",2,0,TextArea.SCROLLBARS_NONE);
              displayArea.setEditable(false);
    displayArea.disable();
    //displayArea.hide();
              displayArea.reshape(0,0,380,216);
              add(displayArea);
              idbox = new java.awt.TextField();
              idbox.reshape(84,288,284,24);
              add(idbox);
              button1 = new java.awt.Button("EnterRoom");
              button1.reshape(384,288,72,21);
              add(button1);
    list = new java.awt.List();
    //list.TOP_ALIGNMENT();
    //list.disable();
    list = new java.awt.List(5);
    list.add("#Default User"+"\n");
    list.reshape(384,24,128,196);
    list.setFont(new Font("Helvetica", Font.BOLD, 12));
    add(list);
              label2 = new java.awt.Label("Members");
              label2.reshape(396,0,100,19);
              add(label2);
              label1 = new java.awt.Label("UserName");
              label1.reshape(0,288,72,27);
              add(label1);
              enterField = new java.awt.TextField();
              enterField.reshape(84,240,431,44);
              add(enterField);
              label3 = new java.awt.Label("EnterText");
              label3.reshape(0,252,72,25);
              add(label3);
    //uf = new UserFrame();
              button1.addActionListener(this);
    idbox.addActionListener(this);
    enterField.addActionListener(this);
    list.addActionListener(this);
    public void actionPerformed(ActionEvent ae)
              if(ae.getSource()==idbox)
    user = idbox.getText()+"\n";
    list.addItem(user.trim());
    idbox.setText("");
              displayArea.append(user +" HAS JOINED THE GROUP");
         if(ae.getSource().equals(button1))
    user = idbox.getText()+"\n";
    list.addItem(user.trim());
    idbox.setText("");
              displayArea.append(user +" HAS JOINED THE GROUP");
    if(ae.getSource().equals(enterField))
    sendData(ae.getActionCommand() );
                   /*msg = enterField.getText();
    displayArea.append(msg +"\n");
    enterField.setText("");*/
    if(ae.getSource().equals(list))
    String l = list.getSelectedItem();
                             //uf.setTitle(l);
                             //Frame i[] = uf.getFrames();
                             //uf.setVisible(true);
    public void start()
              try {
         // Step 1: Create a Socket to make connection
         connectToServer();
         // Step 2: Get the input and output streams
         getStreams();
         // Step 3: Process connection
         processConnection();
         // Step 4: Close connection
         closeConnection();
         // server closed connection
              catch ( EOFException eofException ) {
         System.out.println( "Server terminated connection" );
         // process problems communicating with server
              catch ( IOException ioException ) {
         ioException.printStackTrace();
    if(vt == null)
    vt = new Thread(this,getClass().getName());
    vt.start();
    public void run()
    try{
    for(int i=0;i<10;i++)
    displayArea.append("One stop Java source code - www.globalleafs.com"+"\n");
    displayArea.setForeground(Color.red);
    vt.sleep(30000);
    vt.resume();
    }catch(Exception e){e.printStackTrace();}
         private void sendData( String msg )
              // send object to server
              try {
              output.writeObject( user + ">>> " + msg );
              output.flush();
              displayArea.append( "\nuser>>>" + msg );
              // process problems sending object
              catch ( IOException ioException ) {
              displayArea.append( "\nError writing object" );
         // get streams to send and receive data
         private void getStreams() throws IOException
              // set up output stream for objects
              output = new ObjectOutputStream(
              client.getOutputStream() );
              // flush output buffer to send header information
              output.flush();
              // set up input stream for objects
              input = new ObjectInputStream(
         client.getInputStream() );
              displayArea.append( "\nGot I/O streams\n" );
         // connect to server
         private void connectToServer() throws IOException
              displayArea.setText( "Attempting connection\n" );
              // create Socket to make connection to server
              client = new Socket(
         InetAddress.getByName( chatServer ), 5000 );
              // display connection information
              displayArea.append( "Connected to: " +
         client.getInetAddress().getHostName() );
         // process connection with server
         private void processConnection() throws IOException
              // enable enterField so client user can send messages
              enterField.setEnabled( true );
              // process messages sent from server
              do {
              // read message and display it
              try {
              msg = ( String ) input.readObject();
              displayArea.append( "\n" + msg );
              displayArea.setCaretPosition(
              displayArea.getText().length() );
              // catch problems reading from server
              catch ( ClassNotFoundException classNotFoundException ) {
              displayArea.append( "\nUnknown object type received" );
              } while ( !msg.equals( "SERVER>>> TERMINATE" ) );
         } // end method process connection
         // close streams and socket
         private void closeConnection() throws IOException
              displayArea.append( "\nClosing connection" );
              output.close();
              input.close();
              client.close();
         java.awt.TextArea displayArea;
         java.awt.TextField idbox;
         java.awt.Button button1;
    java.awt.List list;
    java.awt.Label label2;
         java.awt.Label label1;
         java.awt.TextField enterField;
         java.awt.Label label3;
    private Thread vt;

  • Need help joining shared photo stream

    I got invited to a shared photo stream from an Apple user on my PC.  I am currently signed into an active iCloud account, but everytime I click on the invitation link, it takes me to a page that gives directions on how to join a shared photo stream, and shows no indication of me actually joining the photo stream.  I've followed every step, and I just want to view the pictures on the photo stream on my PC.

    Then the sender will either have to turn on the public website option and resend an invitation to you with the url to view the photos on the web, or they will need to resend the invitation to an address associated with an iCloud ID (see http://help.apple.com/icloud/#mmb700ea29).

  • HELP. Chat won't work!

    Apple disconnected from me last night during a session when they were working on my Safari settings. I can't get chat to work (HTTP Status 503 application unavailble) and need help. You would think they would bother to contact me beyond the email that has links that DON'T WORK!!! So frustrated with this! I pay for this service????/

    I am having the same problem, I have submited for help on many different sites including adobe. I will let you know if i find out anything. From what I've found out so far is that this is affecting all Lion users.

  • Please help - Joining three tables and get row values into Column. Please help!

    Hi,
    There is a SourceTable1 (Employee) with Columns like EmployeeID,Name,DOB.
    There is a sourcetable2 (EmployeeCode) with columns like EmployeeID,Code,Order.
    There is a source table 3  #EmployeeRegioncode  and its columns are (EmployeeID , RegionCode , [Order] 
    The target table 'EmployeeDetails' has the following details. EmployeeID,Name,DOB,Code1,Code2,Code3,Code4,regioncode1
    regioncode2 ,regioncode3 ,regioncode4 
    The requirement is , the value of the target table columns the Code1,code2,code3 ,code4,code5 values should
    be column 'Code' from Sourcetable2 where its 'Order' column is accordingly. ie) Code1 value should be the 'Code' value where [Order] column =1, and Code2 value should be the 'Code' value where [Order] =2, and so on.
    Same is the case for Source table 3- 'Region code' column also for the columns  regioncode1
    regioncode2 ,regioncode3 ,regioncode4 
    Here is the DDL and Sample date for your ref.
    IF OBJECT_ID('TEMPDB..#Employee') IS NOT NULL DROP TABLE #Employee;
    IF OBJECT_ID('TEMPDB..#EmployeeCode') IS NOT NULL DROP TABLE #EmployeeCode;
    IF OBJECT_ID('TEMPDB..#EmployeeDetails') IS NOT NULL DROP TABLE #EmployeeDetails;
    ---Source1
    CREATE table #Employee 
    (EmployeeID int, Empname varchar(20), DOB date )
    insert into #Employee VALUES (1000,'Sachin','1975-12-12') 
    insert into #Employee VALUES (1001,'Sara','1996-12-10') 
    insert into #Employee  VALUES (1002,'Arjun','2000-12-12')
    ---Source2
    CREATE table #EmployeeCode 
    (EmployeeID int, Code varchar(10), [Order] int)
    insert into #EmployeeCode VALUES (1000,'AA',1) 
    insert into #EmployeeCode VALUES (1000,'BB',2)   
    insert into #EmployeeCode  VALUES (1000,'CC',3)  
    insert into #EmployeeCode VALUES  (1001,'AAA',1)  
    insert into #EmployeeCode  VALUES  (1001,'BBB',2)  
    insert into #EmployeeCode  VALUES  (1001,'CCC',3)  
    insert into #EmployeeCode  VALUES  (1001,'DDD',4)  
    insert into #EmployeeCode  VALUES  (1002,'AAAA',1)  
    insert into #EmployeeCode  VALUES  (1002,'BBBB',2)  
    insert into #EmployeeCode  VALUES  (1002,'CCCC',3)  
    insert into #EmployeeCode  VALUES  (1002,'DDDD',4)  
    insert into #EmployeeCode  VALUES  (1002,'EEEE',5)  
    ---Source tbl 3
    CREATE table #EmployeeRegioncode 
    (EmployeeID int, RegionCode varchar(10), [Order] int)
    insert into #EmployeeRegioncode VALUES (1000,'xx',1) 
    insert into #EmployeeRegioncode VALUES (1000,'yy',2)   
    insert into #EmployeeRegioncode  VALUES (1000,'zz',3)  
    insert into #EmployeeRegioncode VALUES  (1001,'xx',1)  
    insert into #EmployeeRegioncode  VALUES  (1001,'yy',2)  
    insert into #EmployeeRegioncode  VALUES  (1001,'zz',3)  
    insert into #EmployeeRegioncode  VALUES  (1001,'xy',4)  
    insert into #EmployeeRegioncode  VALUES  (1002,'qq',1)  
    insert into #EmployeeRegioncode  VALUES  (1002,'rr',2)  
    insert into #EmployeeRegioncode  VALUES  (1002,'ss',3)  
    ---Target
    Create table #EmployeeDetails
    (EmployeeID int, Code1 varchar(10), Code2 varchar(10),Code3 varchar(10),Code4 varchar(10),Code5 varchar(10) , regioncode1 varchar(10),
    regioncode2 varchar(10),regioncode3 varchar(10),regioncode4 varchar(10))
    insert into #EmployeeDetails  VALUES (1000,'AA','BB','CC','','','xx','yy','zz','')  
    insert into #EmployeeDetails  VALUES (1001,'AAA','BBB','CCC','DDD','','xx','yy','zz','xy')  
    insert into #EmployeeDetails VALUES (1002,'AAAA','BBBB','CCCC','DDDD','EEEE','qq','rr','ss','')  
    SELECT * FROM  #Employee
    SELECT * FROM  #EmployeeCode
    SELECT * FROM  #EmployeeRegioncode
    SELECT * FROM  #EmployeeDetails
    Can you please help me to get the desired /targetoutput?  I have sql server 2008.
    Your help is greatly appreciated.

    select a.EmployeeID,b.code1,b.code2,b.code3,b.code4,b.code5,c.Reg1,c.Reg2,c.Reg3,c.Reg4 from
    #Employee a
    left outer join
    (select EmployeeID,max(case when [Order] =1 then Code else '' end) code1,
    max(case when [Order] =2 then Code else '' end)code2,
    max(case when [Order] =3 then Code else '' end)code3,
    max(case when [Order] =4 then Code else '' end)code4,
    max(case when [Order] =5 then Code else '' end)code5 from #EmployeeCode group by EmployeeID) b
    on a.EmployeeID=b.EmployeeID
    left outer join
    (select EmployeeID,max(case when [Order] =1 then RegionCode else '' end) Reg1,
    max(case when [Order] =2 then RegionCode else '' end)Reg2,
    max(case when [Order] =3 then RegionCode else '' end)Reg3,
    max(case when [Order] =4 then RegionCode else '' end)Reg4 from #EmployeeRegioncode group by EmployeeID) c
    on a.EmployeeID=c.EmployeeID
    Thanks
    Saravana Kumar C

  • Need help joining one master folder to multiple 1:n detail folders

    I'm trying to query a master folder with two detail folders. Both master-detail joins are 1:N.
    Discoverer keeps giving me results with duplicate records when i try to do this, which is a fan trap I think?
    How can I get around this? I need all 3 tables to be joined.

    i need to do left outer joins from the master to both detail tables and combine the results.
    The query I basically tried was:
    select m.summaryText, m.dateFiled, d1.extraComments, d2.location
    from reports m
    left outer join comments d1 on m.id=d1.id
    left outer join extraData d2 on m.id=d2.id
    This still gave me duplicate records in the results. How can you join all three and merge them without duplicates?
    Thanks for trying to help...

  • I was trying to activate my CS3 and got help from chat until he said it was an installing issue. The application opens and then closes unexpectedly.

    I just got a new mac and I'm trying to download my Adobe CS3 onto it. I was able to download and then I tried to activate it. I entered the CS3 serial number and then asked for the serial number of the older version. I originally bought CS2 on disc and downloaded it onto my old mac and from there bought an upgrade to CS3. I no longer have the discs or box for CS2 and so I do not have the CS2 serial number. I contacted chat support who helped until I reached the point where I could open the application but then it would quit immediately and say "Adobe Update quit unexpectedly." Then he said it was an installing issue and turned me to the forums. Help, please?

    JohnEden I would recommend running all available uninstallers to remove the current installation.  The uninstallers are located in the Applications/Utilities/Adobe Installers folder.  Once you have ran the uninstallers then please also utilize the CC Cleaner Tool for a complete removal.  You can find details on how to utilize the CC Cleaner Tool at Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 - http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html.

  • HELP OVI CHAT

    i signed in on gtalk via ovi chat on nokia e71.
    aftr signing out it is still showing my status as online.
    i hav tried deleting and reinstalling software.. dint really help
    also tried changin d gmail password dint work
    Kindly help
    Thnx

    Iam Terry Thomas My mobile C3-01 communite not enabled plz help........

  • Query Builder Help - Joins

    Can anyone point me in the right direction for doing joins in query builder?
    Thanks!
    Brian
    [email protected]

    Click on the left side of the screen at the
    arrow. Type in the where clause without
    actually typing in "where". You can actually include the columns in the where clause by checking on the columns in the tables present on the right side. Once you are done, press ENTER.
    You are done creating where clause. You can look at the SQL it created for you by clicking on the menu button called "show SQL".
    Hope that helps,
    Oracle University Instructor.
    P.S: If you attend one of our reports or forms - I class we teach this in class. Moreover, the course material we give out has a complete section on Report Builder.
    Go to http:\\education.oracle.com for more info on class info.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Brian Burk ([email protected]):
    Can anyone point me in the right direction for doing joins in query builder?
    Thanks!
    Brian
    [email protected]<HR></BLOCKQUOTE>
    null

  • Help in chat

    hai..
    i m a student doing my project.i m assigned a project to integrate a chat program in an existing application.the application in programmed using EJB.my sir,hav asked me to do it using jive messenger...
    can anybody help me in this task as i hav no knowledge abt it..
    i need guidence...
    pls help..
    pardon me if this is not the right forum for my request...
    thank u..

    This forum is intended for Java Studio Enterprise related threads. You may want to checkout http://www.jivesoftware.org/wildfire/

  • Please help (Simple chat programme)

    I made a simple chat programme.
    It has a server object and it can handle several client.
    It is working properly and can use to chat.
    I have some problems. can you please help me.
    1.What is the best method to read input and outputStreams
    I have used inputStream.readUTF()/outputStream.writeUTF() methods and
    also I have used bufferedReader.readLine()/Printwriter.println() methods.
    I don't know about other methods.So please tell me what is the best and new out of these two.
    And are there any method which is better than these two.
    2.Is there any way to get more details from input and output streams
    Here more details means Fontcolor,Size etc;
    by now I'm adding them in to my output streams and filtering them when rea input stream.
    I'm getting other details(Fontcolor,Size) and add them all to a string.
    that means if client type "hi" my string will be something like this
    "12ff0000hi".
    When read the input stream i make a char[] and take first 2 chars to integer next six to a string and rest
    to another string.
    I think now you can understand my concept. So I'll not tell every thing.(if you want i can fully describe it)
    I' feeling this is very bad way to do that kind of work.
    Am i correct?
    so can you give me some hints or examples to do such kind of things.

    Here's a simple DataInputStream program that talks to itself. It runs the server as a seperate thread.
    import java.io.*;
    import java.net.*;
    public class DataXfer
            private int port = 5050;
            private String address="127.0.0.1";
            public static void main(String args[])
                    new DataXfer().startup();
            // run the server code as a thread and then run the client code
            private void startup()
                    new Thread(new Runnable(){public void run(){listen();}}).start(); // start server thread
                    synchronized(this){
                            try{wait();}catch(InterruptedException ie){}    // wait until its ready
                    connect();                                      // do client stuff     
            private void listen()
                    ServerSocket ss = null;
                    Socket us = null;
                    boolean running = true;
                    try{
                            System.out.println("Listening on port "+port);
                            synchronized(this){notify();}               // tell client we're ready
                            ss = new ServerSocket(port);    // listen for incoming connection
                            us = ss.accept();
                            ss.close();
                            ss = null;
                            DataInputStream dis = new DataInputStream(us.getInputStream());
                            try{
                                    while(running){
                                            int len = dis.readShort();      // read the count
                                            byte [] ba = new byte[len];
                                            int rlen = dis.read(ba,0,len);  // read the data
                                            System.out.println("len="+len+" read length="+rlen);
                                            if(rlen < len){
                                                    us.close();
                                                    running = false;
                                            else{
                                                    for(int j = 0; j<rlen; j++)System.out.print(ba[j]+" ");
                                                    System.out.println("");
                            catch(EOFException ee){System.out.println("EOF");}
                    catch(IOException ie){
                            ie.printStackTrace();
                            System.exit(0);
                    finally{
                            if(ss != null)try{ss.close();}catch(IOException se){}
                            if(us != null)try{us.close();}catch(IOException ue){}
            private void connect()
                    Socket us=null;
                    byte [] ba = new byte[31];
                    for(byte i = 0; i<ba.length; i++)ba=i;
    try{
    System.out.println("Connecting to "+address+":"+port);
    us = new Socket(address, port); // make connection
    System.out.println("Connected");
    DataOutputStream dos = new DataOutputStream(us.getOutputStream());
    for(int j = 0; j<ba.length;j+=10){
    dos.writeShort(j); // write the count
    dos.write(ba,0,j); // write the data
    System.out.println("sent "+j+" bytes");
    try{Thread.sleep(1000);}catch(InterruptedException ie){}
    catch(IOException ie){ie.printStackTrace();}
    finally{
    if(us != null)try{us.close();}catch(IOException ue){}
    For an example of a chat program using NIO see my NIO Server Example. That example is neither short nor simple.

Maybe you are looking for

  • S067 not updated

    Hi In OMO1 t.code ... show the all infostructures s066 is updated ... but s067 not updated.. how can i update this s067 structure ..pls guide meanu one  in this updation procedure thatnks and regards sesi

  • GRC10 Custom Initiator BRFPlus

    Gurus, while defining a new custom rule/initiator I noticed that in the Results Columns for RULE_RESULT my text description is "Trigr Val". According to the documentation this should be "RULE_RESULT". I imagine this is impacting the evalution of this

  • Bizarre crashing with Multiple Monitors in Win 7 64-bit.

    I am running InDesign CS 4.0.2 ME (4.0.4 has yet to be released) with 4 monitors running on 2 nvidia cards. I am having the most bizarre behaviour. After rebooting the computer, ID crashes on starting. The only way to get it to work is to first disab

  • Music with screen saver

    The music stopped playing during my screen saver or during slide shows. All other sound works fine - playing songs, TV shows, movies. The options in screen saver is set to play music. Any suggestions on how to fix?

  • Kicking off download and install Updates remotely

    Hello, I know that in Windows 2012 you can launch sconfig and then run "Download and Install Updates" which I have found to be an extremely useful tool.  Can I launch this (or a similiar) command remotely?  We have a patching system, however I am not