Send A TCP/IP Message

A am trying to write a Flash Program that can connect via
TCP/IP to ZOOM Player (
http://www.inmatrix.com) I am
using the XMLSocket which I can get it to connect but the Zoom
Player does not respond to the play command.
I have attached my code to this message.
Is there another Socket connection I can try other then the
XMLSocket?
Does anyone have any suggestions?
Thanks;
Raymond

Hi ram,
The TcpClient class has a constructor that receives an IPEndPoint instance, this is the local EndPoint.
The IPEndPoint consists of two parts, the IP address and the port to use. you can specify the local port with this parameter.
IPAddress ipAddress = Dns.GetHostEntry (Dns.GetHostName ()).AddressList[0];
int port=9999;
IPEndPoint ipLocalEndPoint = new IPEndPoint(ipAddress, port);
TcpClient tcpClientA = new TcpClient (ipLocalEndPoint);
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.

Similar Messages

  • Can we send a tcp/ip message from a specific port to the client

    Hi All,
    Iam currently trying to send a tcp/ip message to a remote machine on a specific destination port. For each tcp/ip message that iam sending iam able to figure out that the source port varies each time. So I wanted to know if it is possible to maintain a source
    port for sending a tcp/ip message just like a destination Port. You can see my code below for reference:
     TcpClient client = new TcpClient();          
                client.Connect("xxx.xxx.xx.xx", 2024);
                NetworkStream clientStream = client.GetStream();
                ulong refno = GetSessionID();
                DateTime dt = DateTime.Now;
                string str = dt.Year.ToString() + "-" + dt.Month.ToString() + "-" + dt.Day.ToString() + " " + dt.Hour.ToString() + ":" + dt.Minute.ToString() +
    ":00";
                ASCIIEncoding encoder = new ASCIIEncoding();
                string Input2 = "<STX>Inquire<US>REF=203.163.253.55<US>RQN=" + refno.ToString() + "<US>DTE=" + str + "<US>ACI=5274<US>ACE=C<US>ACS=A<ETX>";
                string Input3 = "<STX>Inquire<US>REF=203.163.253.55<US>RQN=" + refno.ToString() + "<US>DTE=" + str + "<US>ACI=5274<US>ACE=C<US>ACS=A<ETX><CHECKSUM>";
                int length = Input2.Length;
                string hexValue = Input2.Length.ToString("X");
                string hexValue2 = length.ToString("X");
             //   string Input = "\x02 Inquire\x1F REF=203.163.253.55\x1F RQN=" + refno.ToString() + "\x1F DTE=" + str + "\x1F ACI=5274\x1F ACE=C\x1F ACS=A\x1F \x3 \\x" + hexValue2;
                string Input = "02Inquire1FREF=203.163.253.551FRQN=" + refno.ToString() + "1FDTE=" + str + "1FACI=52741FACE=C1FACS=A1F3" + hexValue2;
                byte[] buffer = encoder.GetBytes(Input);
                clientStream.Write(buffer, 0, buffer.Length);
                clientStream.Flush();
    ram

    Hi ram,
    The TcpClient class has a constructor that receives an IPEndPoint instance, this is the local EndPoint.
    The IPEndPoint consists of two parts, the IP address and the port to use. you can specify the local port with this parameter.
    IPAddress ipAddress = Dns.GetHostEntry (Dns.GetHostName ()).AddressList[0];
    int port=9999;
    IPEndPoint ipLocalEndPoint = new IPEndPoint(ipAddress, port);
    TcpClient tcpClientA = new TcpClient (ipLocalEndPoint);
    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.

  • How to use  the same channel to send a file and messages to the server

    I'm trying to develop a simple program that will send and receive files from the server and in the same time I need to communicate with the server through the messages
    I'm using TCP Socket
    my problem is
    I have only one channel
    so, I have no option, either I can use it for sending the file itself or sending the message .. but not both !
    my question is : How can I use the same channel for sending and receiving (file & message)
    I would appreciate for any clue or hint
    best

    kajbj wrote:
    kmarwani wrote:
    Thanks for reply
    yes, that what I'm thinking to do
    but, in case of sending binary file, if I attached a flag on its header, will it corrupt the file ?
    bestThe other end would of course need to decode the messages that you get, and only write the "data" part to the file.Thanks
    I'm gonna try to hard-code what you suggest and i will post what happen with me here
    even though I'm not sure how can I add header to a binary file and remove it from the file at other end. (coz I read it as stream and send as array without touching its contents)
    this how I'm sending the file
    ConnSocket = CSocket.accept();
    ToClient = new DataOutputStream(ConnSocket.getOutputStream());
    File myFile = new File("abc.jpg");
    FileInputStream myFileInStream = new FileInputStream(myFile);
    BufferedInputStream mybuffInStream = new BufferedInputStream(myFileInStream);
    myBytArray = new byte[(int) myFile.length()];
    mybuffInStream.read(myBytArray, 0, myBytArray.length);
    ToClient.write(myBytArray, 0, myBytArray.length);
    ToClient.flush();
    myFileInStream.close();best

  • I cannot email photos from within iPhoto (v. 9.5.1). When I hit send I get a message: "Your email did not go through because the server did not reply." This happens for both my iCloud account and my Shaw account. What to do???

    I cannot email photos from within iPhoto (v. 9.5.1). When I hit send I get a message: "Your email did not go through because the server did not reply." This happens for both my iCloud account and my Shaw account. What to do???

    Are you able to email from Mail with those two accounts?  If so:
    1 - go to iPhoto's Accounts preference pane and delete both accounts. Now add them back and try again.
    2 - a better solution IMO is to set Mail as the email client for iPhoto is iPhoto's General preference pane.  This gives you better access to your contacts, a sent copy of all emails and, if you want a layout similar to iPhoto's, photo layouts located in Mail's stationary.

  • Messages in Outbox (email) will not send.  Getting error message.....

    Lately I cannot get any messages in my email outbox to send (pics I take, then forward through email).  I keep getting an error message, "A copy has been placed in your mailbox.  The sender address "xxxx" was rejected by the server."  It is the same email address (also apple id) for comcast I have used for years and it always worked before. Can anyone help me solve this problem?  Running version 6.1.3 software.   I am so frustrated.....

    Hey lloleary12,
    Try out the following troubleshooting article:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/ts3276
    It'll go over how to troubleshoot Mail when it has issues sending email messages by determining which part of the email "ecosystem" is the cause of the issue, then steps to attempt to resolve it.
    Regards,
    David

  • My ipad receives email with the hotel wifi but will not send.  The error message is "user name or password for ........is incorrect" but both are correct and unchanged.  Restarting iPad didnt help.

    My iPad receives email on the hotel wifi but will not send.  The error message reads "user name or password for smpt......is incorrect" but both are correct and unchanged.  Restarting iPad did not help.

    I did try this too, but when I access my webmail on the iPad, the iPad doesn't allow me to type my message.  I am able to enter in the "to" address and the "subject" line, but then the keyboard will not come up for me to type my message.  Is there some trick to this?  Very frustrating!

  • Is there a software in which I can hook up my iPhone 4s to my computer and send and receive text messages and calls (via headset) through my computer?

    Is there a software in which I can hook up my iPhone 4s to my computer and send and receive text messages and calls (via headset) through my computer? Whether it's free or cost money, can someone please give me a name of a program or software that allows me to do this? I can't seem to find anything like this for the iPhone.

    No.

  • Having horrible service with 4GLTE I have had 3G for several weeks (I am not the only person I know having this problem), I have reset my network settings and it did not resolve the issue.  I am also unable to send SMS and text messages without them eithe

    Having horrible service with 4GLTE I have had 3G for several weeks (I am not the only person I know having this problem), I have reset my network settings and it did not resolve the issue.  I am also unable to send SMS and text messages without them either failing or not sending at all.  Is there an outage in the Cleveland, Ohio area (zip codes 44129, 44134, 44137) or anything else I can do to resolve this issue?

    Not that I'm a Verizon employee, but I have experience in the field. An LTE tower will only extend up to, on a perfect day, with no elevation, 6-7 miles. On a typical day, you will be lucky at four (4) miles. The three ZIP codes you've given are all within about a 12 mile radius. That would mean that 2-3 towers are currently down at the same time, and Verizon would know about it within the hour. Being it's Cleveland, I'm sure they would receive numerous calls regarding an outage of that size.
    My point is that if you're having issues in all three ZIP codes, chances are it's a phone issue. If you're handset is simply not receiving LTE, but still receiving 3G, that would signify a SIM card issue. You need to get your SIM card replaced.

  • HT5622 My husband and I both have iPhones. We are currently using the same Apple ID. I have my own ID but when I send him a text message it comes back to me or goes to my computer. How do we separate the 2 ID's so we can send messages?

    My husband and I both have iPhones. We are currently using the same Apple ID. I have my own ID but when I send him a text message it comes back to me or goes to my computer. How do we separate the 2 ID's so we can send messages?

    You need to reconfigure your phone for use with your Apple ID. I suggest you restore yours as new then reconfigure it with your information and Apple ID. Be sure to disable Find My Phone, if it's enabled, before proceeding.
    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    A
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    7. iOS - Unable to update or restore
    Forgotten Restrictions Passcode Help
                iPad,iPod,iPod Touch Recovery Mode
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    You can restore from a backup if you have one from BEFORE you set the restrictions passcode.
    Also, see iTunes- Restoring iOS software.

  • I have a iPhone 3GS and my husband has the iPhone 4 , both phones with updated current . We added iMessage to them at first it was great, now I don't get half the texts my husbands send and when I send him a text message it will come up from my email???

    I have a iPhone 3GS and my husband has an iPhone 4, both phones are updated. We added iMessage the them both and at first it was great, the messages appear in the text messages under the phone contacts and when I send a text message it will either be a green message  or a blue one for (iMessage) depending on the signal.  Now when my husband sends a text message to me I don't get them all or some days none. When I send him a text message he gets them from my email address. I cannot send him a standard text anymore my phone only wants to iMessage, so if the signal is not right it just sits there undelivered???
    I also have a friend who that we regularly texted each other, for the past 4 months I can receive her texts but she never gets mine? And I have tried countless times, now iv given up trying and I don't use texting to either, but everyone else no problem.

    You and your husband can share a store account and still have seperate iCloud accounts for your contacts, bookmarks and stuff like that.  Click here for instructions to make an apple account without entering a credit card.  Make sure you use a different email address for each apple account. 
    Set up your iPhone/iPad whatever using the new account for iCloud.  Then go into settings/store and sign in with your purchasing account, you may need to sign out of the other account.  To the best of my knowledge, your household is allowed to share purchased legally, someone please correct me if I'm wrong.
    Once you each have your own devices set to your own accounts you can set them to backup to that account and it will keep all your contacts seperate.

  • My wife and I share the same email address and Apple ID.  We are not able to send and receive Text Messages to one another.

    My wife and I share the same email address and Apple ID. We are not able to send and receive Text Messages to one another. Is the cause of this because we share the same Apple ID? Will we have to set up 2 separate primary email addresses to be able to  send and receive Tex Messages to one another? Like I said, we share the same email address and woul like to keep it that way to keep up with our email together. Is there a way to by-pass having to set up 2 primary emaill addresses if this is the problem?
    Thanks.

    go to the settings and turn off imessage
    but that don't change the issue that you will never be able to facetime eachtoher
    the appleID is really meant as the handle that identify you it was not meant to be shared
    but can see that people may want to do not buy apps more then once

  • HT1349 MY IPHONE 4 THAT IS ONE MONTH OLD IS SENDING MULTIPLE REPEAT TEXT MESSAGES AND EVERYONE I KNOW IS ANNOYED WITH ME, IVE READ THIS IS AN ONGOING PROBLEM, DOES ANYONE KNOW IF THAT IS TRUE OR IF THERE IS A WAY TO FIX IT? I CAN NOT SEEM TO GET AN ANSWER

    My iphone 4 is about a month old ad it continues to send multiple repeat texts message to the point where I have stop sending texts because everyone is annoyed with me, is there a solution that anyone knows of? I am hearing from sprint that it is apple's issue and from apple it is a sprint issue. They said I can take it to the store but its one month old and I find it hard to beleive that they do not have an easier solutions, i dont have time to or the patience to give up my phone for three days. This can't be right correct? If anyone has founf a solution I would really appreciate some help as Im sure you can hear I am frustrated.
    thank you

    It is a sprint issue and other carriers have that same problem. I get multiple copies of texts from other carriers all the time to my iphone. It isn't the iphone, it is the carrier sending the text message several times because they haven't received and ack message from the recepient.

  • Is there a way to send a message with a photo attached using imessages. I am not able to send a photo to one of my contacts because I am sending the contact a message text messages. I don't want to send contacts text messages. I want to send them iMe

    Is there a way to send a message with a photo attached using imessages. I am not able to send a photo to one of my contacts because I am sending the contact a message text messages. I don't want to send contacts text messages. I want to send them iMessages.

    Kolyei, sorry for the late reply.
    Have your brother create a contact in his phone for himself. Inside his own contact, have him add his phone number and his iCloud address.
    Settings > Messages > Send & Receive Have your brother select both his phone number and email addresses where he would like to receive iMessages.

  • After updating the IO7, I can no longer send or recieve text messages. What do I do?

    Since I downloaded the IOS7, I havent been able to send or recieve text messages/iMessages or access my SnapChat account. I have called Apple 3 different times and they said they do not know how to help. Any solutions?

        DrEvey,
    Let's get your MMS messages sending and receiving again!  Are you receiving an error message? Has this been occuring everywhere? Is your cellular data turned on? Please share some details so we can further assist.
    TrevorC_VZW
    Follow us on Twitter @VZWSupport

  • Since my update to 4.4.4 I can no longer send or receive MMS messages.  What gives?????

    Since the latest update to 4.4.4 I can no longer send or receive MMS messages.  What gives????

        DrEvey,
    Let's get your MMS messages sending and receiving again!  Are you receiving an error message? Has this been occuring everywhere? Is your cellular data turned on? Please share some details so we can further assist.
    TrevorC_VZW
    Follow us on Twitter @VZWSupport

Maybe you are looking for