How can I test a RTP(send&receive) application on the same computer?

I an writing an application that lets one computer (A) sends a media file to another computer (B) and B receives it and play it.
But how can I test this application on the same computer
Eg.Transmitter: localhost 43000
Receiver: localhost 43000
It will retuen an error since the port number is alreeady used by another program.
I know if I test it on different computers, it should be fine, but how can I test it on the same computer?

JMStudio sends RTP packets from the same UDP port as the specified in the destination port, so you can't try it in the same computer. The examples provided in http://java.sun.com/products/java-media/jmf/2.1.1/solutions/index.html follow this rule aswell, but it's easy to modify it:
rtpMgrs[streamid]=RTPManager.newInstance();
localAddr = new SessionAddress( InetAddress.getLocalHost(),localDataPort);
//By deafault, in the examples, they use  remote DataPort instead of localDataPort.
//You can specify localDataPort to any different free port number, or to
//SessionAddress.ANY_PORT if you don't mind the port number
remoteAddr  = new SessionAddress(destIpAddr,remoteDataPort);
rtpMgrs[streamid].initialize(localAddr);
rtpMgrs[streamid].addTarget(remoteAddr);

Similar Messages

  • How can you add a 2nd i Tunes account on the same computer?

    How can you add a 2nd i Tunes account to the same computer?

    I had an application where I spawned (= ran with Start Asynchronous Call) multiple (reentrant) copies of VIs, and would occasionally "lose control" of them.  I needed a way to find all VIs that were running "Top Level" and stop them (so I didn't have to log off from Windows).
    I used the Application Property "All VIs in Memory" to get an array of (wait for it ...) All VIs in Memory.  I took each name, opened a VI reference to it (simply wire the name string in, as the VI is, by definition, "in memory"), looked at its VI Execution State, and if it was Run Top Level, Invoked the FP.Close and Abort VI Methods.  [To prevent the VI that did all this from "committing Suicide", I compared the name string with the current Call Chain, and did nothing if there was a match].
    I think you could adopt this idea to do what you need.
    BS

  • How can I download a past downloaded Acrobat version on the same computer after loosing it in a crash?

    How do I download  Acrobat from my account on to the same computer that crashed and is rebuilt? I see my purchase and SN in my account?

    Acrobat XI, X - http://helpx.adobe.com/acrobat/kb/acrobat-downloads.html
    Acrobat 9, 8 - http://helpx.adobe.com/acrobat/kb/acrobat-8-9-product-downloads.html

  • How Can I do it with to different ipod on the same computer ?

    I have and ipod(1GB) and my daughter has another ipod(4GB), how can we work with the same computer and itune for 2 different ipods ?
    iPod(1GB) and a second iPod(4GB)   Windows XP   2 different iPods on the same computer

    this document might be of some help with that:
    How to use multiple iPods with one computer
    if you decide on a multiple-user-account strategy, this document might also be useful:
    iTunes: How to share music between different accounts on a single computer

  • How can you find out if another VI running on the same computer and how can you find out the name of that VI?

    Suppose that several VIs running simultaneously on the same computer. How can I find out the names of the running VIs, from another VI?
    If the already running VIs are clones of the same basic VI, open and run with the option "Prepare to call and forget", how can I find out the names and index of each clone? 

    I had an application where I spawned (= ran with Start Asynchronous Call) multiple (reentrant) copies of VIs, and would occasionally "lose control" of them.  I needed a way to find all VIs that were running "Top Level" and stop them (so I didn't have to log off from Windows).
    I used the Application Property "All VIs in Memory" to get an array of (wait for it ...) All VIs in Memory.  I took each name, opened a VI reference to it (simply wire the name string in, as the VI is, by definition, "in memory"), looked at its VI Execution State, and if it was Run Top Level, Invoked the FP.Close and Abort VI Methods.  [To prevent the VI that did all this from "committing Suicide", I compared the name string with the current Call Chain, and did nothing if there was a match].
    I think you could adopt this idea to do what you need.
    BS

  • How can I migrate from one user to another within the same computer?

    My main user account in my desktop is becoming buggy after to many migrations from different computers and long time usage. I would like to migrate from one user to another user within the same computer to see if this improves my current problems.
    How can I do it in a reasonably safe and quick way?
    Thank you very much, cheers, Rui
    iMAC, OS 10.6.8... and yes, I love Snow Leopard light and handy... and all my programs work on it...

    Move small groups of files to the /Users/Shared/ folder or another location and see if the problems disappear. Moving everything to a new user account will in all probability transfer the problems.
    (119885)

  • I am the administrator on our family computer with 3 other member logins. I have downloaded the pages app but how can my other family members also use it on the same computer?

    I am the administrator on our family computer with 3 other family member logins. I have downloaded the app for pages but how can I allow the other users access to it? I am a computer novice so i need some advice.

    If Pages and the other applicatioins installed in the Applications in the root directory they can be used by everyone. By default all programs installed by the App store are installed in the Applications folder in the root. In other words, your family members should be able to use the programs. Can they not?

  • How can I sync firefox bookmarks with safari bookmarks on the same computer

    iMac running OS 10.5.8.
    When I add bookmark it goes to Firefox but not to Safari. How can I make it do both??
    Thanks

    Hi,
    Yes you can as long as you have two seperate user accounts on your computer. Hope this helps.
    xxmitchxx90

  • How can I access two "E-Business suite" Applications at the same time

    I have Application "A", and for the performance issue, I decide to install another instance let say "B", and clone "B" from "A" in a daily basis, so for some reports I need the user to access "A" and for another reports to access "B".

    On the subsequent invoke event, put up another window.
    Or, duplicate the -app.xml and change the id.

  • HT1688 my iphone 5 is stuck on the recovery mode and everytime i tried to restore it , it said that my phone have error 21, how can i fix it or send my phone to the appstore ?

    my iphone 5 is stuck on the recovery mode and everytime i tried to restore it , it said that my phone have error 21, how can i fix it or send my phone to the appstore ?

    Follow this one as well...
    http://support.apple.com/kb/TS3694

  • How can I migrate everything from one account to another on same computer?

    How can I migrate everything from one account to another on same computer?

    Transferring files from one User Account to another

  • How can I create multiple versions of a video within the same project?

    OK...this is a probably a very basic question but I'm not sure how to word it clearly.
    How can I create multiple versions of a video within the same project? What I mean is that I have a bout 50 minutes of video and I want to make two DVDs using different clips from this original 50 minutes of footage. It would be a real pain to have to re-import the video AGAIN for the second DVD. I suppose I could drop anything I don't want to burn to DVD back into the clips pane but that would wipe out all my transitions wouldn't it? I want to save each project in their “raw” form so I can burn additional DVDs later otherwise I would just do them one at a time and not care about one of them being destroyed.
    Wow...that was a mess. Does anyone understand what the heck I’m asking? I hope so.

    How can I create multiple versions of a video within the same project?
    You can't. You make separate projects using the same or different clips, segments, transitions, titles, etc. You can even duplicate the first project and then modify/make the desired changes in the duplicated project. Each project can then be burned as a different DVD or as different titles on the same DVD if there is enough room.

  • I have a large number of photos imported into iPhoto with the dates wrong.  How can I adjust multiple photos (with varying dates) to the same, correct, date?

    I have a large number of photos imported into iPhoto with the dates wrong.  How can I adjust multiple photos (with varying dates) to the same, correct, date?

    If I understand you correctly, when you enter a date in the Adjust Date and Time window, the picture does not update with the date you enter.  If that is the case then something is wrong with iPhoto or your perhaps your library.
    How large a date change are you putting in?  iPhoto currently has an issue with date changes beyond about 60 years at a time.  If the difference between the current date on the image and the date you are entering is beyond that range that may explain why this is not working.
    If that is not the case:
    Remove the following to the trash and restart the computer and try again:
    Home > Library > Caches > com.apple.iphoto
    Home > Library > Preferences > com.apple.iPhoto (There may be more than one. Remove them all.)
    ---NOTE: to get to the "home > library" hold down option on the keyboard and click on "Go" > "Library" while in the Finder.
    Let me know the results.

  • How can I see my reminders in my Mac in the same way I see them in my iPad and iPhone

    How can I see my reminders in my Mac in the same way I see them in my iPad and iPhone, I is easier to work with reminders in Ipad and Iphone rather to see them like a list on ICal

    The calendar seems to be the only way to see reminders right now. I'm aware of no 3rd party program that deals with just reminders...but I'd like to find one.

  • How can I do to acquire and save date in the same time and in the same file when I run continual my VI without interrupti​on.

    I've attached a VI that I am using to acquire amplitude from Spectrum analyzerse. I tried to connect amplitude ouput to the VI Write Characters To File.vi and Write to Spreadsheet File.vi. Unfortunately when I run continual this VI without interruption, labview ask me many time to enter a new file name to save a new value.
    So, How can I do to aquire and save date in the same time and in the same file when I run continual my VI for example during 10 min.
    Thank you in advance.
    Regards,
    Attachments:
    HP8563E_Query_Amplitude.vi ‏37 KB

    Hi,
    Your VI does work perfectly. Unfortunately this not what I want to do. I've made error in my last comment. I am so sorry for this.
    So I explain to you again what I want to do exactly. I want to acquire amplitude along road by my vehicle. I want to use wheel signal coming from vehicle to measure distance along road. Then I acquire 1 amplitude each 60 inches from spectrum analyzer.
    I acquire from PC parallel port a coded wheel signal coming from vehicle (each period of the signal corresponds to 12 Inches). Figure attached shows the numeric signal coming from vehicle, and the corresponding values “120” and “88” that I can read from In Port vi.
    So I want to acquire 1 time amplitude from spectrum analyser each 5
    period of the signal that I am acquiring from parallel port.
    So fist I have to find how can I count the number of period from reading the values “120” and “88” that I am acquiring from In Port (I don’t know the way to count a number of period from reading values “120” and “88”).
    Here is a new algorithm.
    1) i=0 (counter: number of period)
    2) I read value from In Port
    3) If I acquire a period
    i= i+1 (another period)
    4) If i is multiple of 5 (If I read 5 period)
    acquire 1 time amplitude and write to the same
    file this amplitude and the corresponding distance
    Distance = 12*i). Remember each period of signal
    Corresponds to 12 Inches).i has to take these
    values: 5,10,15,20,25,35,40,45,50,55,60............
    5) Back to 2 if not stop.
    Thank you very much for helping me.
    Regards,
    Attachments:
    Acquire_Amplitude_00.vi ‏59 KB
    Figure_Algorithm.doc ‏26 KB

Maybe you are looking for

  • Time Machine backup/restore on iMac with SSD and HD...

    Time Machine backs up the SSD and HD on my iMac into one "sparse bundle" for the computer.  I need some direction on how to get to the HD backup in order to restore individual files and folders.  PLEASE do not give an answer like "Just enter Time Mac

  • DIVX Converter/Codec not working with FCP and OS 10.7?

    For years, I've used the DIVX Converter/Codec to output video files from Final Cut Pro 7.0.3 via the Export/Use Quicktime Conversion/Divx as a .divx file. But today, after I upgraded my OS from 10.6 to 10.7 and installed the latest version of DIVX Pr

  • Changing default plant in third party sales order

    Hi Gurus, Kindly help me understand the reason. I have created a 3rd party sales order for service material.It is determining plant SCB1 when there are three plants active in the sales organisation SC00. The shipping point for SCB1 is SC01 (as it is

  • BPM - Async/Sync Bridge

    I'm trying to implement the scenario in this blog - http://www.riyaz.net/blog/a-step-by-step-guide-to-bpm-asynch-sync-bridge/technology/sap/170/ It involves a File  - RFC - File scenario using BPM . File Async Receive  -> Sync Send to RFC ->  Transfo

  • How to connect windows live email setting

    Please tell me how to "connect windows live email setting".  Thank you.