Using Sockets TCP/IP to connect through Proxies and Firewalls

How to do in a Client/server Application using Sockets TCP/IP to connect through Proxies and Firewalls?
How to implement the HTTP Tunnelling in this case?
the code in Client to connect to server is:
SSLSocketFactory sslFact = (SSLSocketFactory)SSLSocketFactory.getDefault();
               socket = (SSLSocket)sslFact.createSocket(c.site, c.PORT);
          String [] enabledCipher = socket.getSupportedCipherSuites ();     
               socket.setEnabledCipherSuites (enabledCipher);
               out = new ObjectOutputStream(socket.getOutputStream());
               in = new ObjectInputStream(socket.getInputStream());
The Server is an executable Standalone Application with a main Function � How to do to convert this Server in a Servlet Application?
the code in Server to wait client connections is:
Runtime.getRuntime().addShutdownHook(new ShutdownThread(this));
          try {
               SSLServerSocketFactory factory = (ServerSocketFactory) SSLServerSocketFactory.getDefault();
               SSLServerSocket sslIncoming =
                    (SSLServerSocket) factory.createServerSocket (PORT);
               String [] enabledCipher = sslIncoming.getSupportedCipherSuites ();
               sslIncoming.setEnabledCipherSuites (enabledCipher);
          while(running) {
                    SSLSocket s = (SSLSocket)sslIncoming.accept();
               newUser(s, pauseSyn);
          } catch (IOException e) { System.out.println("Error: " + e); }
some links or code sample?
Thanks in Advance

Did you see this: Networking Properties?
Including
SOCKS protocol support settings
and
http.proxyHost (default: <none>)
http.proxyPort (default: 80 if http.proxyHost specified)
http.nonProxyHosts (default: <none>
ftp.proxyHost (default: <none>)
ftp.proxyPort (default: 80 if ftp.proxyHost specified)
ftp.nonProxyHosts (default: <none>)

Similar Messages

  • My IPOD and Macbook Pro both will not connect to the Itunes store through Itunes says no internet connection, but I can connect through safari and I have a internet connection

    My IPOD and Macbook Pro both will not connect to the Itunes store through Itunes says no internet connection, but I can connect through safari and I have a internet connection

    As I mentioned above, I am not very tech savvy so I have no idea why a wireless protocol would be showing up there, I'm just listing everything I see in hopes that someone might know something I can try. This is why I am asking for help here - I'm not sure what has happened that has made me unable to connect, especially since it seemingly occured while nobody was using the computer.
    I guess I should clarify that I'm not a total hillbilly- normally my firewall is set to 'on', but I set it to 'off' to try and troubleshoot the issues here as I was told that sometimes it can interfere with the computer's ability to connect to the internet. If this is not the case and firewall does not affect anything, I will turn it back on while I try to fix this.
    I have tried the method you mentioned above a few times - I actually contacted my ISP earlier this week and they recommended resetting the router like that. They didn't mention any known network issues.

  • HT201210 I'm trying to update my iOS to 6.0, using iTunes (with my 4s connected via USB and WiFi is on also). I get a message that 'there are purchased items on my iPhone that have not been transferred to my iTunes library. Yet, I can't find those items!

    I'm trying to update my iOS to 6.0, using iTunes (with my 4s connected via USB and WiFi is on also). I get a message that 'there are purchased items on my iPhone that have not been transferred to my iTunes library. Yet, I can't find those items! Help!  There is not error message number just the text message. I've searched for an answer but have found nothing on "transfering items purchased to your iTunes library".

    Right click on your device icon on the left pane of iTunes and click on transfer pur....

  • Ive tried to update my iphone by using wifi but the wifi connection got interupted and not my iphone wont work

    Ive tried to update my iphone by using wifi but the wifi connection got interupted and not my iphone wont work

    Connect your iPhone to a computer and use iTunes to perform the update.
    ~Lyssa

  • Communication between Windows 7 and Windows 8(and above) using Sockets(TCP and UDP)

    I need to use TCP and UDP using Sockets to communicate between two(or more) applications installed in Windows 7 and Windows 8.
    Is it possible.? I tried within a LAN, but in vain. If needed I would post the appropriate code.
    Note: I only tried running exe(s) in these machines and not with installation.

    Hello Prabodh.Minz,
    >>Is it possible.?
    It is not clear what develop language you are using, here are examples which uses the C# based on .NET. It created the communition between two machines by using sockets with TCP protocol, a server and a client:
    Synchronous example:
    Client and
    Server.
    Asynchronous example:
    Client and
    Server.
    Multi-client per one server - socket programming in .net(C#)
    >>Note: I only tried running exe(s) in these machines and not with installation.
    There are all .exe.
    Regards.
    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.

  • I have been using iTunes for years to connect to radio and just recently tried to get on and sign pops up stating " A error occurred while contracting the radio tuning service. Check your internet connection or try again later "  I do but the same respons

    I have been using iTunes for years to connect to the radio and just recently tried to tune in and an error sign pops up stating " A error occurred while contracting the radio tunning service. Check your internet connection or try again later." There's no problrm with my internet service so what's up?

    You are probably using an old version of iTunes with which the stream link service seems to have stopped working for many users of older iTunes.  No, Apple makes no comment about this kind of thing.  It may reappear, it may not (it has been dead for over a week now).  Your solution is to upgrade the operating system version on your computer from 10.5.8 to 10.6.8 so you can run a newer iTunes, or live without.  You can still open streams if you can get the URL, and you can then save them as playlist items.

  • When trying to connect my imessage and facetime it says unable to verify email because already in use?, when trying to connect my imessage and facetime it says unable to verify email because already in use?

    I bought my daughter a new ipod touch, have connected to itunes as we have all our other apple products but she has been receiving my text messages and emails.  So I restored back to factory settings to start again but this time adding her email address to facetime and imessage but it just keeps saying unable to verify email because it is already in use.  what do i do?

    See:
    iOS: FaceTime is 'Unable to verify email because it is in use'

  • Hi i use adobe reader for SARS efiling through firefox and SARS says not compatible with Firefox to open adbobe reader and file my Tax returns via SARS website

    I,m having problems trying to file my SARS tax returns via SARS efiling on their website sarsefiling.co.za .They use adobe reader to open their documents ie EMP201 PAYE and EMP501 VAT returns
    it won,t open the document in order for me to capture the company information on their website . I have mozzilla firefox as my protection for sites and emails I go through mozzilla to open adobe documents /attachments . it seems with SARS website doesn,t like this .So how do i go around trying to do my job at work . Thanks linda Desperate now ...........

    I think I found a Windows setting that is causing the issue. I'm using
    my LCD HDTV as the monitor for this computer, and in order to see the display easily, I have the following setting in Windows 7: Control Panel > Appearance and Personalization > Display > Make text and other items larger or smaller > 150%.
    When I change this to the default of 100%, the problems with Reader X in Firefox and IE disappear. Reader 9, however, works perfectly at 100% and 150%.
    Is this a known bug in Reader X? Since the problem only appeared when moving from Reader 9 to Reader X, it seems it's not an unsolveable incompatability or something that's too difficult to work around.
    Do any others with their displays magnified have this problem? Or does it work perfectly? Would anyone (preferably with Windows 7 64-bit) be willing to set their display magnification to 150% and see if they can replicate the problem?

  • Q: Re: Q: Acquiring data using two E series devices connected by RTSI and streaming data to disk

    << (My first posting)
    I use two E series PCI Cards, connected by RTSI. I'd like to stream the data
    from both cards to a binary file and to add a header to it.
    I also need to somehow read (plot) the stored data, this with another VI.
    The whole should be then integrated into an existing program, that used just
    one acquisition card.
    Till now I have tried to combine "Two E-series Shared ScanClk.vi" and "High
    Speed Data Logger.vi" into another VI, and I have tried to read the stored
    data with the "High Speed Data Reader.vi". The problem is that I fight with
    one error after another, what prevents me from going further.
    I use LabView 6.1, under Windows 2K.
    Has somebody by chance already done something similar and would agree to
    share with me their experience? TIA for any suggestion.
    Regards,
    Victor Manta
    >>
    "Ben" wrote in message
    news:[email protected]...
    > Hi Victor,
    >
    > I have done a lot of similar work.
    >
    > Exactly what did you try and what specific errors did you encounter?
    >
    > What you are trying is do-able provided the hardware you have suuports
    > it.
    >
    > Please post (both here and to the DAQ group)
    > the details of the hardware you are using,
    > versions of software being used,
    > Examples that you are using,
    > error codes that occured,
    > posibly post example code showing the problem.
    >
    > Ben
    Hi Ben,
    I use two PCI-MIO-16E-1 cards, connected by RTSI. I'd like to stream the
    data from both cards in real time to a binary file, after having added a
    header to it.
    For tests, on the channel 0 of each card is applied the same square wave,
    100 Hz.
    Yes, the hardware support RTSI. I use LabView 6.1.
    Till now I have:
    1. Combined the "Two E-series Shared ScanClk.vi" and the "High
    Speed Data Logger.vi" into a DAQ VI. To do this, I have "doubled" and
    adapted the "High Speed Data Logger.vi". For testing purposes the data are
    stored in two files, always the same ones (the old ones being overwritten
    after each acquisition).
    2. "Doubled" and adapted "High Speed Data Reader.vi" into another VI, for
    reading from both files, mentioned earlier.
    What already works:
    - The headers for both files are correctly stored (VI point 1.)
    - The acquired data from the first card (device 1) are correctly stored (VI
    point 1.)
    - The VI (point 2.) that reads both files and displays the results works
    What doesn't work:
    - The acquired data from the second card aren't stored at all (VI point 1.)
    - An error message says: "Error -10608 occurred at AI Buffer Read. Possible
    reason: NI-DAQ LV: No transfer is in progress for the specified resource."
    I think that I understand this message, but I don't know how to continue.
    The DAQ VI can be downloaded from (please click the link, then the link on
    that page; about 100K, zipped):
    http://www.swissheartnet.unibe.ch/labview.htm
    Thanks a lot in advance.
    Regards,
    Victor Manta
    PS. I don't know which DAQ group you mean.

    "Filipe A." wrote in message
    news:[email protected]...
    > Victor;
    >
    > You can definitely accomplish that task with the DAQ boards you have
    > and Labview.
    >
    > It would be good if you could be more specific as far as what type of
    > errors you are seeing and how you are integrating both VIs.
    >
    > Regards
    > Filipe A.
    > Applications Engineer
    > National Instruments
    Maybe Mr. Filipe A. could help me? Please see below, and TIA.
    Regards,
    Victor Manta
    "Victor Manta" wrote in message
    news:[email protected]...
    > << (My first posting)
    > I use two E series PCI Cards, connected by RTSI. I'd like to stream the
    data
    > from both cards to a binary file and to add a header to it.
    >
    > I also need to somehow read (plot) the stored data, this with another VI.
    >
    > The whole should be then integrated into an existing program, that used
    just
    > one acquisition card.
    >
    > Till now I have tried to combine "Two E-series Shared ScanClk.vi" and
    "High
    > Speed Data Logger.vi" into another VI, and I have tried to read the stored
    > data with the "High Speed Data Reader.vi". The problem is that I fight
    with
    > one error after another, what prevents me from going further.
    >
    > I use LabView 6.1, under Windows 2K.
    >
    > Has somebody by chance already done something similar and would agree to
    > share with me their experience? TIA for any suggestion.
    >
    > Regards,
    > Victor Manta
    > >>
    >
    > "Ben" wrote in message
    > news:[email protected]...
    > > Hi Victor,
    > >
    > > I have done a lot of similar work.
    > >
    > > Exactly what did you try and what specific errors did you encounter?
    > >
    > > What you are trying is do-able provided the hardware you have suuports
    > > it.
    > >
    > > Please post (both here and to the DAQ group)
    > > the details of the hardware you are using,
    > > versions of software being used,
    > > Examples that you are using,
    > > error codes that occured,
    > > posibly post example code showing the problem.
    > >
    > > Ben
    >
    > Hi Ben,
    >
    > I use two PCI-MIO-16E-1 cards, connected by RTSI. I'd like to stream the
    > data from both cards in real time to a binary file, after having added a
    > header to it.
    >
    > For tests, on the channel 0 of each card is applied the same square wave,
    > 100 Hz.
    >
    > Yes, the hardware support RTSI. I use LabView 6.1.
    >
    > Till now I have:
    >
    > 1. Combined the "Two E-series Shared ScanClk.vi" and the "High
    > Speed Data Logger.vi" into a DAQ VI. To do this, I have "doubled" and
    > adapted the "High Speed Data Logger.vi". For testing purposes the data are
    > stored in two files, always the same ones (the old ones being overwritten
    > after each acquisition).
    >
    > 2. "Doubled" and adapted "High Speed Data Reader.vi" into another VI, for
    > reading from both files, mentioned earlier.
    >
    > What already works:
    >
    > - The headers for both files are correctly stored (VI point 1.)
    > - The acquired data from the first card (device 1) are correctly stored
    (VI
    > point 1.)
    > - The VI (point 2.) that reads both files and displays the results works
    >
    > What doesn't work:
    >
    > - The acquired data from the second card aren't stored at all (VI point
    1.)
    > - An error message says: "Error -10608 occurred at AI Buffer Read.
    Possible
    > reason: NI-DAQ LV: No transfer is in progress for the specified resource."
    >
    > I think that I understand this message, but I don't know how to continue.
    >
    > The DAQ VI can be downloaded from (please click the link, then the link on
    > that page; about 100K, zipped):
    >
    > http://www.swissheartnet.unibe.ch/labview.htm
    >
    > Thanks a lot in advance.
    >
    > Regards,
    >
    > Victor Manta
    >
    > PS. I don't know which DAQ group you mean.

  • Q: Acquiring data using two E series devices connected by RTSI and streaming data to disk

    I use two E series PCI Cards, connected by RTSI. I'd like to stream the data
    from both cards to a binary file and to add a header to it.
    I also need to somehow read (plot) the stored data, this with another VI.
    The whole should be then integrated into an existing program, that used just
    one acquisition card.
    Till now I have tried to combine "Two E-series Shared ScanClk.vi" and "High
    Speed Data Logger.vi" into another VI, and I have tried to read the stored
    data with the "High Speed Data Reader.vi". The problem is that I fight with
    one error after another, what prevents me from going further.
    I use LabView 6.1, under Windows 2K.
    Has somebody by chance already done something simi
    lar and would agree to
    share with me their experience? TIA for any suggestion.
    Regards,
    Victor Manta

    << (My first posting)
    I use two E series PCI Cards, connected by RTSI. I'd like to stream the data
    from both cards to a binary file and to add a header to it.
    I also need to somehow read (plot) the stored data, this with another VI.
    The whole should be then integrated into an existing program, that used just
    one acquisition card.
    Till now I have tried to combine "Two E-series Shared ScanClk.vi" and "High
    Speed Data Logger.vi" into another VI, and I have tried to read the stored
    data with the "High Speed Data Reader.vi". The problem is that I fight with
    one error after another, what prevents me from going further.
    I use LabView 6.1, under Windows 2K.
    Has somebody by chance already done something similar and would agree to
    share with me their experience? TIA for any suggestion.
    Regards,
    Victor Manta
    >>
    "Ben" wrote in message
    news:[email protected]...
    > Hi Victor,
    >
    > I have done a lot of similar work.
    >
    > Exactly what did you try and what specific errors did you encounter?
    >
    > What you are trying is do-able provided the hardware you have suuports
    > it.
    >
    > Please post (both here and to the DAQ group)
    > the details of the hardware you are using,
    > versions of software being used,
    > Examples that you are using,
    > error codes that occured,
    > posibly post example code showing the problem.
    >
    > Ben
    Hi Ben,
    I use two PCI-MIO-16E-1 cards, connected by RTSI. I'd like to stream the
    data from both cards in real time to a binary file, after having added a
    header to it.
    For tests, on the channel 0 of each card is applied the same square wave,
    100 Hz.
    Yes, the hardware support RTSI. I use LabView 6.1.
    Till now I have:
    1. Combined the "Two E-series Shared ScanClk.vi" and the "High
    Speed Data Logger.vi" into a DAQ VI. To do this, I have "doubled" and
    adapted the "High Speed Data Logger.vi". For testing purposes the data are
    stored in two files, always the same ones (the old ones being overwritten
    after each acquisition).
    2. "Doubled" and adapted "High Speed Data Reader.vi" into another VI, for
    reading from both files, mentioned earlier.
    What already works:
    - The headers for both files are correctly stored (VI point 1.)
    - The acquired data from the first card (device 1) are correctly stored (VI
    point 1.)
    - The VI (point 2.) that reads both files and displays the results works
    What doesn't work:
    - The acquired data from the second card aren't stored at all (VI point 1.)
    - An error message says: "Error -10608 occurred at AI Buffer Read. Possible
    reason: NI-DAQ LV: No transfer is in progress for the specified resource."
    I think that I understand this message, but I don't know how to continue.
    The DAQ VI can be downloaded from (please click the link, then the link on
    that page; about 100K, zipped):
    http://www.swissheartnet.unibe.ch/labview.htm
    Thanks a lot in advance.
    Regards,
    Victor Manta
    PS. I don't know which DAQ group you mean.

  • Failing to connect through AFP and FTP from the Internet on Mac Pro?

    Hi all,
    I have tried to access my Mac Pro (located at home) from my work place without any success. I used to do this on a regular basis with my old G4, and never faced any problem.
    All the boxes are ticked in the Sharing Prefs pane, I have keyed in the correct IP address to access my machine, and for some obscure reason it simply doesn't work...
    I'm sure someone must have tried this, I'll be interested to know if I am missing something somewhere...
    Looking forward for an answer here!!
    Thanks,

    Hi Ned,
    You have hit the right spot! I couldn't remember having set up this NAT for my G4, that was too long ago, but I went back into the Belkin Router and readjusted the settings, and it's all fine now!!
    For those interested, it took me a while to find out that with the Belkin 4-Ports Router, you can only direct the traffic for AFP or FTP to ONLY 1 IP Address... A bit short in my case, but I manage to find a workaround where I have assigned 1 IP address for the Mac Pro to do AFP (File Sharing) and 1 IP address on my old G4 to do FTP (File Transfer Protocol)...
    And if anyone needs help to connect to their home machine while physically being in another place, I'll be happy to help...
    And it's happening!
    Thanks again Ned, well spotted!!!
    Cheers,

  • HT201320 I use my college's email address through outlook and I don't know what you use for the incoming and outgoing host?

    My email is though the college where I work.  We use Outlook, and I am trying to set up my email but I am not sure what to use for my incoming and outgoing host information.

    Ask your college. Most likely the same settings as you have set in Outlook.

  • HT1430 I drive a 2011 Ford Escape with sync technology.  My iphone 4 on the osi 6 would connect through bluetooth and allow me the handsfree access on the steering wheel to run my music.  It won't let me change with osi 7

    I cannot figure out why the new upgrade osi 7 will not allow me to use the bluetooth control in my 2011 ford escape to be able to change the song on the steering wheel like I could with osi 6.  It's making me log into my phone to be able to change it and I don't text and drive so this is defeating the whole purpose of hands free.

    you need a firmware update from stero mfg.
    Peace, Clyde

  • Hi, i'm using apple ipad4, unable to connect whats app and face time from my ipad, Hi, i'm using apple ipad4, unable to connect whats app and face time from my ipad

    Hi, i'm trying to connect my ipad with facetime and whats app but, icould't, pl. help me out in this regard

    I am not sure what your problem is, but you must know that facetime and whatsapp only connect to othere apple users with facetime or whatsapp. It is not the same as "general"  apps as Skype.

  • HT201210 the iPhone 4 will not connect through iTunes and has extracted all data from the device

    It seems like this could be an issue with the device.  IT will not connect long enough to extract the data.

    From the Community Ettiquette page found here.
    1) Post only technical support questions and answers, unless otherwise noted.
    2) Be polite, constructive and stay on topic.
    3) Search for questions similar to your own before submitting a new question to the community.
    I'm certain if you try option 3 you'll find relevant information on how to proceed.

Maybe you are looking for

  • Problems with text on Photoshop CC

    I have Window 8 64bit with the latest Intel HD Graphics driver. When I type text in Photoshop CC the whole image goes black. What can I do?

  • Do I need to unlock my phone to use Consumer Cellular?

    I bought a used Iphone 3GS that was an AT&T phone and I was planning to use it with Consumer Cellular who said that I wouldn't need to unlock the phone to use their service. When the phone arrived it worked fine, I didn't have to go through any activ

  • Having problems trying to install the photoshop elements trial after download?

    After the download was complete I opened the Adobe Photoshop Elements 9 folder and the install icon had a black line running through it. If i double click on it a message comes up stating that its not supported on this architecture. I do not understa

  • Can I do off-line viewing of a Movie rental on windows 8.1?

    I have a Windows 8.1 tablet.  I want to be able to watch a movie on a long airplane ride without having internet access.  Is there a way to rent the movie in iTunes and watch it? I downloaded the rental movie.  Once in the air, I tried to run it in i

  • SunApp Server 8 - Weblogic 8.1

    Hi Folks, What I'm tring to do is create a web application that can talk to an existing Enterprise application running on Weblogic 8.1 The web application (in a war) runs fine if I deploy it to Weblogic (by virtue of exporting the war from Creator) b