Urgent_Socket Programming through firewall

Hi all...
I am developing multiple client-one server application through socket programming.
I have one client who will send real time data on request of another client.
This whole data will pass through socket connection.(something like video conferencing)
Steps:
1.Client B sends request to Client A through server.
2.Server accepts connection and gives Client B's IP address and port number
to Client A.
3.Client A sees the request and starts transferring real time data to Client B by opening Socket connection.
I have following doubts:
1. What exactly role of server
2. Important is  What about firewall?* This communication has to happen through firewall also.*
What technique has to be used to pass data through FIREWALL.
Thanks In Advance.

Hi..
can you please give me some details about how to write program using SOCKS.
i have developed simple application using Socket and Server socket.
I want this application to be run over web,from anywhere,from any machine.
Thanks

Similar Messages

  • Allow Program Through Firewall

    How do I allow Echolink to use UDP ports 5198 and 5199.  Appears to be blocked by personal firewall and I can't get allow exceptions to work.

    Is someone trying to connect into your computer using Echolink, or are you trying to make a connection to someone else's computer?
    If someone is trying to connect to your machine from the outside, you may want to look at your Wireless router as provided by the FiOS service. The router will block connections it isn't told about coming in by design, and what you need to do besides checking your computer's firewall, is to Port Forward. If you're making the connection from your end to another person or server, then the person on that end has to make sure they've done Port forwarding and firewall checks, as needed.
    ========
    The first to bring me 1Gbps Fiber for $30/m wins!

  • Itunes gets blocked through Firewall

    I have Sonic Wall TZ 150 Standard as a firewall gateway and allowing hand ful of websites in to the allowed list of domains in Sonic wall so as to restrict others. But with this my Itunes was getting blocked and not allowing My IPHONE to update. So I run netstat utility and added all list of IP address coming up in to the allowed list of domains but still ITUNES is getting blocked.
    So can you tell me if apple is using specific IP address list or is there any other process to get Itunes working through firewall.

    and the McAfee Security programs
    Doublechecking ... do your McAfee products include McAfee Family Protection?
    If so, check to see if your McAfee Family Protection is currently blocking iTunes, as per the following McAfee document:
    Using McAfee Family Protection Web Blocking
    If iTunes is currently being blocked, unblock it.
    Are you able to get through to the Store now?

  • Submitting XML Publisher Concurrent Program through PL/SQL

    Hi,
    I am trying to submit a XML Publisher concurrent program through PL/SQL API fnd_request.submit_request.
    The request gets fired and completes successfully but it doesn't pick up the default template attached to it. Its output is plain XML but expected output is PDF report.
    However when I submit this report from SRS, it picks up the default template and gives output in PDF.
    Please let me know what could be going wrong?
    Regards,
    Nitin

    Check out the FND_REQUEST.ADD_LAYOUT API. You need to call it before you submit your report.
    Cheers,
    Dave

  • How to call program through process chain

    Hi Gurus,
    I am in the position to execute the abap program through process chain, I have used  abap program as process type in process chain(First time I am using this process type).when I am executing the process chain, the abap program is not executing.Eagerly anticipating your reply.
    Regards
    Shiva

    Hi
    I managed the execution of rscrm jobs in PC as follows:
    1. Execute query through RSCRM_BAPI transaction
    2. goto sm37 and copy the Jobname (the active one)
    3. Create following progromm
    *& Report /WST/RSCRM_START *
    REPORT /WST/RSCRM_START .
    parameter: l_bid TYPE sysuuid_c.
    CALL METHOD cl_rscrmbw_bapi=>exec_rep_in_batch
    EXPORTING
    i_barepid = l_bid
    4. Execute Programm and fill the Parameter with the Jobname
    5. Save as a new program variant and use in PC as a normal program
    I hope that helps.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
    regards
    ashwin

  • Problem when register parameter for conc program through backend

    Hi all,
    i register the executable and corresponding conc program through backend.
    But when i tried to register the parameter from backend using fnd_program.paramter procedure i got many error.
    So can any of u guys help me out to find my ways ,how to successfully register parameter thoregh backend.
    below mentioned the code i taken
    begin
    fnd_program.parameter(     program_short_name=>'BACK_END_TEST1_CONC_PRO',
         application=>'SQLXXXUSER2',
         sequence=>1,
         parameter=>'DEPTNO',
         value_set=>'V11',
         required=>'Y',
         display_size=>2,
         description_size=>50,
         concatenated_description_size=>25,
         prompt=>'DEPTNO',
         token=>'DEPTNO'
    END;
    please help guys
    Thanks,
    Tune_to_urs

    The fnd_program.parameter call that you have is passing values for all of the necessary procedure parameters. To me, that means that the errors you are getting are related to the data that you are passing into the call.
    Possible errors with the values you are passing (I cannot tell because I don't know what data you have in your environment) are:
    - invalid program short name
    - invalid application name (needs to be the full application name rather than the short name)
    - parameter with same sequence already exists
    - value set does not exist
    - you can only specify tokens for certain types of concurrent programs (ie Oracle Reports)
    Just running the anonymous PL/SQL block like you have shown, the errors that are preventing it being saved should be displayed.

  • My Mac HD says that I have Quicktime Software, all that I find in my applications is Quicktime Player. And I cannot unlock Quicktime Pro in this program through its preferences.. help?

    My Mac HD says that I have Quicktime Software, all that I find in my applications is Quicktime Player. And I cannot unlock Quicktime Pro in this program through its preferences.. help?

    http://support.apple.com/kb/DL923?viewlocale=en_US&locale=en_US
    Install and register this version. It installs in the Utilities folder.

  • Calling a tcode of a program instead of calling program through se38 in BDC

    Hi ,
    I want to call a BDC using  tcode ,J4AB which is transaction for program J_3AARN5.
    Actually my Zprogram is uploading data through se38. Here,i want to call the transaction code J4AB directly...   instead of using J_3AARN5 program through se38 in my BDC.
    Here I am in dilemma ...what to do ...
    Do I need to ask my client for a new recording for this T-code J4AB or
    what do i do??
    Please suggest,
    Thanks in advance.
    Hema

    Hi Bijay,
    yes it is "call transaction J4AB". But my question is that do we need to create recording for that.Just giving "call transaction J4AB" is enough??if so, what do we give in perform generate bdc_data.
    If we have to create recording, do we need to ask client for the data. please let me know.
    Thanks,
    Hema.

  • Running perl programs through java.

    How do i run a perl program through java?
    arg.pl :
    while(<STDIN>)
    print;
    java program that I tried:
    import java.io.*;
    class runtime
        static Process p;
        static BufferedReader stdOutput;
        static BufferedWriter stdInput;
        public static void main(String args[]) throws IOException
            int i = 0;
            try{
                String cmd[] = new String[] {"perl","arg.pl"};
                p = Runtime.getRuntime().exec(cmd,null,new File("./"));
                stdOutput = new BufferedReader(new InputStreamReader(p.getInputStream()));
                stdInput = new BufferedWriter(new OutputStreamWriter(p.getOutputStream()));
            catch(Exception ex){
                System.out.println("Unable to initiate Process : " + ex);
            stdInput.write("abcd\n");
            stdInput.write("1234\n");
            stdInput.write("efgh\n");
            stdInput.write("5678\n");
            stdInput.close();
            System.out.println(stdOutput.readLine());
            System.out.println(stdOutput.readLine());
            System.out.println(stdOutput.readLine());
            System.out.println(stdOutput.readLine());
    }This works well. But I need to read the output line by line as and when i give the standard input line by line to it.
    I tried the following :
    import java.io.*;
    class runtime
        static Process p;
        static BufferedReader stdOutput;
        static BufferedWriter stdInput;
        public static void main(String args[]) throws IOException
            int i = 0;
            try{
                String cmd[] = new String[] {"perl","arg.pl"};
                p = Runtime.getRuntime().exec(cmd,null,new File("./"));
                stdOutput = new BufferedReader(new InputStreamReader(p.getInputStream()));
                stdInput = new BufferedWriter(new OutputStreamWriter(p.getOutputStream()));
            catch(Exception ex){
                System.out.println("Unable to initiate Process : " + ex);
            stdInput.write("abcd\n");
            stdInput.flush();
            System.out.println(stdOutput.readLine());
            stdInput.write("1234\n");
            stdInput.flush();
            System.out.println(stdOutput.readLine());
            stdInput.write("efgh\n");
            stdInput.flush();
            System.out.println(stdOutput.readLine());
            stdInput.write("5678\n");
            stdInput.flush();
            System.out.println(stdOutput.readLine());
            stdInput.close();
    }This doesn't work well. It just halts without any output.
    Can anyone help me?
    Edited by: Vijayakrishna on Dec 5, 2007 8:30 AM

    Let me be more specific.
    I want to use a class which will look something like this.
    import java.io.*;
    public class FindAnswer{
        Process p;
        BufferedReader stdOutput;
        BufferedWriter stdInput;
        public FindAnswer()
            try{
                String cmd[] = new String[] {"perl","arg.pl"};
                p = Runtime.getRuntime().exec(cmd,null,new File("./"));
                stdOutput = new BufferedReader(new InputStreamReader(p.getInputStream()));
                stdInput = new BufferedWriter(new OutputStreamWriter(p.getOutputStream()));
            catch(Exception ex){
                System.out.println("Unable to initiate Process. Error: " + ex);
        public String getAnswer(String question)
            String answer = question;
            try{
                stdInput.write(question + System.getProperty("line.separator"));
                stdInput.flush();
                answer = stdOutput.readLine();
            catch(Exception ex){
                System.out.println("Exception. Error: " + ex);
            return answer;
        public void close()
            if (p != null) {
                try {
                    if (p.getInputStream() != null)
                        p.getInputStream().close();
                    if (p.getOutputStream() != null)
                        p.getOutputStream().close();
                    if (p.getErrorStream() != null)
                        p.getErrorStream().close();
                catch (Exception e) {
                    System.out.println("Exception in Closing Streams - " + e);
    }The perl program takes lot of initialization time. I dont want to run the program foreach question i have. I'll just create an object to this class and find and answer by passing question to the object's getAnswer method. Here, I dont know all the questions in the beginning itself. I'll know one by one only and I should find answer without terminating the process.
    Kindly help me in this.

  • CAlling a program through submit statement

    Hi,
    how to fill selection screen of called program from values of calling program through submit.

    Hi,
    check this
    given clearly in SAP keyword help
    submit <report name> WITH SELECTION-TABLE rspar
    Effect
    If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
    SELNAME (length 8),
    KIND (length 1),
    SIGN (length 1),
    OPTION (length 2),
    LOW (length 45),
    HIGH (length 45).
    To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
    SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
    KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
    SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
    If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
    The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.

  • Client connecting through firewall

    Hi
              We have two clustered servers.Our client is connecting through
              firewall NAT. When iam connect to first server the response is very slow and
              at the same time clustering is not working.If i stop the second server the
              response fast .
              The same configaration is working fine when my client is local.
              Can you explain the reason for this problem ?
              Presently iam using weblogic 6.1 version.
              Thank you
              

    OK I spoke too soon. The user looked like it was working but it was working because it matched another IAS policy further down the list. It seems as though the PIX refuses to use ms-chap of any sort. If I include the authentication type in the VPN policy conditions as ms-chap, it skips the VPN policy I am using to authenticate this. If I remove it, then it gives an invalid authentication type as if whatever the PIX is sending the IAS server does not understand as ms-chap.
    It seems like the PIX authentication is totally wrong for use with IAS. What else do I need to add to this configuration to gewt it to work with ms-chap of any kind? I really don't get it.

  • Running Java programs through a GUI

    Hi All.
    I have a Java GUI which compiles and runs other Java programs through the use of JButtons.
    The user clicks one button to compile and another to run. Compile is running fine but Run is slightly odd.
    When I click the Run button the Java program does not run until I minimize the GUI or switch to another window or application.
    So for example I click the Run button, nothing happens, I then alt+tab or minimize to say NetBeans (which I am using to develop it) or an IE window. The program then runs successfully
    My method for running the program is:
    public void clickRunProgram() {
            try {
                Runtime r = Runtime.getRuntime();
                r.exec("cmd /c java Testing");
            catch (IOException ex) {
                Logger.getLogger(ProgrammingEnvironmentGUI.class.getName()).log(Level.SEVERE, null, ex);
        }Any ideas?
    Cheers.
    Edited by: lobrien9 on 25-Mar-2008 12:57

    You must give the process its input and get its output or it won't run. Try something like this:
            // create the process to test
            Process acm = Runtime.getRuntime().exec("cmd /c java Testing");
            // send input
            PrintWriter processOut = new PrintWriter(acm.getOutputStream());
            processOut.print("input");
            processOut.flush();
            processOut.close();
            // get output
            StringBuilder givenOutputBuilder = new StringBuilder();
            BufferedReader processIn = new BufferedReader(
                    new InputStreamReader(acm.getInputStream()));
            String line = processIn.readLine();
            while (line != null) {
                givenOutputBuilder.append(line + "\n");
                line = processIn.readLine();
            }

  • I am in a scholarship program through the Ministry of Education of Spain.

    I am in a scholarship program through the Ministry of Education in Spain and I'm trying to get creative cloud on the education plan.  I do not attend a university but I am in Spain on Student Visa for this program.  How do I put that information into the section that asks which school I belong to?

    Hi AdonisWier,
    Welcome to Adobe Forum,
    Please refer to http://www.adobe.com/education/teacher-eligibility-guide.edu.html,
    I would request you to contact Adobe at http://adobe.ly/yxj0t6 as I see that you are from a different country too.
    Regards,
    Rajshree

  • HT201209 When my purchase points in one of the programs through the iPhone show me this message:- Your purchase could not be completed.. contact iTunes store support to complete this transaction

    When my purchase points in one of the programs through the iPhone show me this message:- Your purchase could not be completed.. contact iTunes store support to complete this transaction??

    Welcome to the Apple Community.
    Did you follow the instructions in the message and contact Apple, which you can do through iTunes Store Support. If Apple have asked you to contact them, then the issue can only be resolved by them.

  • Java collection use within c++ program through CORBA

    How I use java.util.collection (i.e. Vector, ArrayList) within c++ program through CORBA (Orbacus 4.xx) with Linux, please help me...

    Use CORBA. It's the best way. I had the same dilema and CORBA was my choice. I implemented a server object in C++ that calls existing functions from dlls developed by an other team for a Window based application. The client is represented by a set of servlets that invoke methods on the C++ CORBA implemented server. I preferred to use the Apache + Tomcat combination.
    I found JNI difficult to use an not flexible enough.
    I did not even planed to try to use Runtime.getRuntime.exec. The overhead and resource usage make this solution impossible for a multiuser web application.
    CORBA works fast, is well supported. I found easy to implement both the java client servlets and the C++ servler and I didn't have much knowledge in CORBA.
    So my oppinion is to start learning CORBA

Maybe you are looking for