Crash connection over Internet using TCP/IP SSL sockets

I'm doing a file Transfer WEB Client/server Application using TCP/IP SSL Sockets?
In an internal LAN the file Transfer work pretty well but in Internet this Crash (downturn the file transfer).
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 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 help with this topic, show me the ligth? what is bad?

Hi,
Can you show us the stacktrace?
/Kaj

Similar Messages

  • Difference between Share Disks over WAN vs. over Internet using Bonjour?

    I would like to find out the Difference between selecting the "Share Disks over WAN" option only vs also selecting the additional "Share disks over Internet using Bonjour" option. Any info is greatly appreciated! Thanks!

    you can access drives plugged into your AirPort extreme base station from outside the network by typing in the IP address of the modem/base station in the "Connect to Server" dialogue on the Finders "Go" menu (or press Command+K when in Finder). You can get the base station IP by opening the AirPort Utility from your utilities folder, and click "manual setup" at the very bottom of the summary tab should be the IP address given the base by your modem.
    As long as you have "Share Disks over WAN enabled" when you connect using the IP from another location you will be prompted to authenticate to the AirPort Base station and if authentication is successful you will be prompted to mount a disk (the disk plugged into your AirPort base station should be the only available disk to mount).
    Keep in mind you must give out the Base Station password unless you allow guest connections to the disk.

  • Ipad2 -can i connect to internet  using a data card

    ipad2 -can i connect to internet  using a data card

    This article:
    http://edcommunity.apple.com/ali/story.php?itemID=18585&version=6330&pageID=1582 9
    depending on your experience level should tell you all you need to know.
    You don't need mobile me, you just need to know your mac's ip and have vnc
    client software of some sort running on the machine you are travelling with.
    Read the entire article, as once you get past the part about monitoring multiple machines there is some useful info.

  • Can not connect to internet using bluetooth connection with Nokia N95

    Hello!
    I'm trying to connect to internet using my Nokia N95 as a modem and connecting my Macbook Pro and Nokia using bluetooth connection. Mac says me "Can not connet to PPP server..."
    When i connect using usb cable connection between Nokia and Mac - everything is OK.
    Where is the problem?
    Thank you!

    Hello!
    I'm trying to connect to internet using my Nokia N95 as a modem and connecting my Macbook Pro and Nokia using bluetooth connection. Mac says me "Can not connet to PPP server..."
    When i connect using usb cable connection between Nokia and Mac - everything is OK.
    Where is the problem?
    Thank you!

  • MBP upgraded to Yosemite and now will not connect to Internet using a Cisco router

    I Upgraded my MBP mid 2010 to Yosemite and now it will not connect to Internet using a system that involves typing in my user name and password in an auto pop up window provided by Cisco security systems. Before, using Mavericks, it worked perfectly: boot up MBP and the Cisco pop up auto loaded. Typed it my password and hey presto, connected to Internet. Now, zilch. There is nothing wrong with the Cisco cos my iPad connects ok, as do both my iPhone's.
    the problem is with Yosemite therefore. Please help. I tried all the usual diags, etc to no avail.
    Message was edited by: AWAC

    Sounds like there could be some kind of compatibility issue between ICS and this Bluetooth device of yours. Is there any compatibility info from the manufacturer about which Android versions that's being supported?
     - Community Manager Sony Xperia Support Forum
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Problems connecting to Internet using Airport - can anyone help ?

    I'm using a MacBook running OSX 10.4.11, trying to connect to internet using Airport. I connected OK first time, but after powering off the Mac, each time I now try to connect again, the Mac can't find the network. Network Diagnostics can't fix it either. I use a Linksys wireless router, connected to an ADSL modem. I use PPPoE. I live in Borneo, and the line connection is not great, occasionally the phone line drops out and then modem reconnects itself, I wonder whether this is causing some sort of problem with IP settings. The only way I can connect wirelessly is to start the Mac, reboot the modem, then the router, and plough through Network Diagnostics. A real pain. Help much appreciated.

    I have a Linksys Wireless-G (model WRT54GS). This is working ok because I have two other wireless devices (internet radio and iPod touch) which connect fine. Firmware is up to date. I've done a bit more troubleshooting, and the the problem is connected with the phone line, which drops out all too regularly. Each time the phone line drops out, the Mac is unable to connect to the network wirelessly. After going through Network diagnostics, and rebooting the modem+router, it comes with a message saying "Network changes detected", and then I can reconnect OK. The funny thing is, the IPod touch can always reconnect no problem, even if the line has dropped out since the last login. Given that I've got a crappy phone line conection, is this normal or is there something wrong with my Mac settings ?

  • Hi i am having problems connecting to internet using ethernet,in the network diagnostics i get all green,except network settings which is orange.i am running mountain lion on intel imac

    hi i am having problems connecting to internet using ethernet,in the network diagnostics i get all green,except network settings which is orange.i am running mountain lion on intel imac

    hi have done as you said plug ethernet straight into computer and into back of router,and worked straight off,i had the the powerline on extention when imac was up stairs,when i had computer down stairs it still would not work with powerlines even on main wall sockets,so they are getting binned,looks like i will have to move router upstairs,just wondering if i got extention wire from back of openreach box to router upstairs```,would it be ok,,the openreach box is next to my only phone socket in house,which is in back kitchen..any advice would be great,

  • Cant connect to internet using airport?!!!

    Hi,
    Suddenly and out of nothing, I just dont seem to be able to get connect to internet using airport. I restarted all devices but it still not working. Though I can connect to my wireless network using airport, I cant use the internet. I can use the internet from other devices and I've already checked my settings.
    Thanks

    Hi - what do you mean when you say that you "installed Airport Express on laptop" - do you mean "with your laptop using the Windows 7 version of the Airport Utility? - and what wireless router are you referring to? - if you clarify these issues, maybe someone can help you

  • Ipad can't connect to internet using 30 pin

    Hi
    My question is i am trying to connect to Internet using Ipad 2 WIFI version only.  By using 30 pin connector connects to my Mac Mini.  I thought this is supposed to work and able to connect to the internet, but it isn't happening.
    I don't have WIFI access at this location so i need to connect to Internet by using Mac Mini as tethering.
    Please help or advice.
    thanks

    You can create an ad-hoc Wi-Fi network on your Mac Mini using the built in airport card and network sharing pane.
    Provided that you Mac Mini is on this will broadcast a Wi-FI signal that you can you can now connect your iPad to.
    Step by step
    click on Apple menu and open System Preferences
    Under Internet & Wireless click on the Sharing folder
    In the left hand pane tick Internet sharing
    In the right hand side where it says Share your connection from select Ethernet
    Under To computers using tick Wi-Fi
    Now click the Wi-Fi Options button
    You are now going Add a name for your Wi-Fi Network  (It will broadcast its SSID by default)
    Select a channel select 6 or 11
    Set a security level and password click ok. RIGHT DOWN THE PASSWORD !
    Now go to your iPad .
    Tap on Settings then Wifi and slide the Wifi button to on and allow iPad to scan for your network name.
    When found tap on it and in the next window enter the password as written down.
    You iPad will now be sharing the Mac Mini Internet and should allow you to use Safari/ e-mail etc......
    All cable free as far as the iPad is concerned.

  • Can't connect to internet using Nokia Suite

    Hello. I have a Nokia Asha 311. I could connect to internet using my USB cable and Nokia Suite without trouble in another computer similar to the one I'm using now. The difference is that that computer had windows 7 and this one has Windows xp (probably there are more differences, but this is the most noticeable). I have Nokia Suite version 3.8.48, it recognizes my phone, but everytime I tried to connect to the internet using the phone as modem, it says, inmediately (it isn't even trying to connect) "Failed to establish a network connection"
    What can I do? If I was able to use my Nokia Asha 311 in the other computer as a modem, I'm sure I can use here too for that. But there is something preventing it from working well. What can it be? I have already read the other posts about similar issues but I haven't found any solution in them.

    Hi overo,
    Welcome to the forum! 
    Is the OS of your Windows XP PC updated? It's advisable to keep both PC and phone's software up-to-date. Try also to repair Nokia Suite to isolate the issue. Just click the PC's start button, and then go to All Programs > Control Panel > Installed applications. Select Nokia Suite, and then choose Uninstall / Change > Repair. After this step, try to share our phone's connection to your PC and see if it'll work. Make sure that Nokia Suite mode is selected in your Asha 311 when sharing the internet connection to your PC via Nokia Suite.
    Let us know how it will go. 

  • HT1937 4s will not connect to Internet using sim card

    Girlfriends iphone 4s will not connect to Internet using sim card. It uses a "three" prepaid sim - and was only recent purchased and installed.... She is in HK but cannot speak Chinese so having problems sorting it out...... All the settings look correct - cellular data turned on etc........... I am not with her in HK also so I can't grab the phone and check ..... Can anybody help

    Go here on your phone, see if you can add the correct APN settings to your phone:
    http://www.unlockit.co.nz/unlockit/

  • Outlook is not connecting through Workgroup Machine over internet using Outlook Anywhere

    users can connect successfully using outlook anywhere over internet if machine are on domain, well problem with workgroup machine that are not connecting over the internet as outlook keep prompting password well i have configured outlook Anywhere with
    default negotiate authentication as well as ssl offloading is checked and using same name for internal and external urls. also have valid 3rd party certificate configured on server.
    Talha Faraz Malik

    Hi,
    Step 1 :In addition to that , please use remote connectivity analyzer to check outlook anywhere in internet .
    From that we came to know the exact error .
    Step 2: Most of the organisations are having an ISA or TMG firewall to create web published rules for exchange services .In case if you have you need to check the rule created for outlook anywhere is properly configured or not.
    If you have such kind of firewall's ,You can test the OA rule by using the option test rule in ISA or TMG firewall .
    Most probably you can able to find out the exact cause with the help of EXRCA.
    Please reply me if you have any queries.
    Regards
    S.Nithyanandham

  • Can't connect to internet using Mac OS?!

    Hi! I tried to connect to my friends internet with my macbook over wifi, but I cant when I use Mac OS...using windows over bootcamp I can connect perfectly...also every time I connect to his internet over Mac OS, his internet crash and he need to reboot his router...at home I can use internet perfectly, but every time i try connect to his internet that happens...any idea what can be problem?cause connecting over bootcamp works...thanks!

    ---I'm moving this topic to the Boot Camp forums.
    -Twilight

  • Sharing time capsule over internet using bonjour

    I recently purchased a time capsule and set it up to wirelessly connect to my home network. After some reading I've found out that I can access the time capsule when away from home. I've read that there is normally a spot to check "share disks over WAN" but I have "share disks over the internet using bonjour". Now I have tried to share the disk using bonjour and I can't figure out how to access it after this step is completed. Can anyone help??
    Thanks

    Hello mbeal08. Welcome to the Apple Discussions!
    (Note: The following procedure will only work if the Time Capsule (TC) is the router directly connected to Internet modem. It will NOT work if the TC is a downstream router behind another router.)
    To share out the TC's internal drive to the Internet:
    Configuring the TC
    AirPort Utility > Select the TC
    o Note the value of the IP Address. This is the Public or WAN-side IP address of the TC. (Note: You will need to have either a static Public IP address, or use a free dynamic DNS service in order to access the TC from the Internet. This is something Back to my Mac (BTMM) would have make simple for you.)
    Manual Setup > Internet > Internet Connection
    o Connection Sharing = Share a public IP address
    Manual Setup > Disks > Files Sharing tab
    o Enable file sharing (checked)
    o Secure Shared Disks = With base station password
    o AirPort Disks Guest Access = Not allowed
    o Share disks over Ethernet WAN port (checked)
    Manual Setup > AirPort > Base Station
    o Enter a Base Station Password and verify it in the Verify Password box.
    Manual Setup > Advanced > Port Mapping
    o Click the plus sign "+" to add a new port mapping.
    o In the Public UDP Port(s) and Public TCP Port(s) boxes, type in a 4-digit port number (e.g., 5688) that you choose.
    o In the Private IP Address box, type the internal IP address of your TC that you noted earlier.
    o In the Private UDP Port(s) and Private TCP Port(s) boxes, type 548, and then, click Continue.
    o In the Description box, type a descriptive name like "Time Capsule File Sharing," and then, click Done.
    o When you have made all the changes, click Update.
    Connect the MacBook Pro to the TC from a remote location
    o In the Finder, click Go > Connect to Server.
    o Type in the correct domain name or external IP address for your network, plus a colon and the port number you specified when configuring the TC earlier. For example,"www.myTC.com:5688" or "145.200.112.108:5688".
    o Click Connect.
    o You will be prompted for your user name and password. The user name can be anything you like; the password would be the TC's Base Station password you defined earlier.
    o Click Connect.
    You should now be connected to the TC's internal drive from your MBP. (Note: The TC will appear in the Shared section of your Finder's sidebar as a server with TC's Base Station Name as the server name.)

  • Facing Problems in Streaming Video over internet using FMS 3.5

    I,am using FMS 3.5 to stream video over internet.This video will be a part of a website www.mywebsite.com . I have the webserver in my company. This webserver has the local LAN IP : 192.168.10.19 which is binded with a public internet ip 212.77.xx.xx .This website is hosted using IIS 6.0 on OS windows 2003 server with SP2
    I created a swf name sample.swf from sample.flv file and gave it the rtmp address as follows:
    rtmp://192.168.10.19/vod/_StreamingVideo_/sample.flv   (where _StreamingVideo_  is the instance on the server, and 192.168.10.19 is the LAN IP of server) ,and it worked fine and every one within the local company network could see the streaming video. Now i tried to replace this local address with the public address and the address became as follows:
    rtmp://212.77.xx.xx/vod/_StreamingVideo_/sample.flv
    After giving this public IP in the rtmp address i,am getting a message "Failed to load Flv from the address rtmp://212.77.xx.xx/vod/_StreamingVideo_/sample.flv" and as as result the video is not streamed and it only shows the progress bar on the link
    www.mywebsite.com/VideoStreaming/Sample.html without loading the video. I have also checked the ports 80,1935,1111 on the server and they are open. Is there any problem with my rtmp address with public IP or any other reason ??. Please help me out in this regard because im realy stuck here.

    Adding to my previous post this is the XML output i get when i try to access the fms admin console from local ip address i.e http://192.168.10.19:1111/fms_adminConsole.htm
    <?xml version="1.0" encoding="utf-8" ?>
    - <result>
    <level>error</level>
    <code>NetConnection.Connect.Rejected</code>
    <description>Admin user requires valid username and password.</description>
    <timestamp>2/3/2010 8:26:08 AM</timestamp>
    </result>
    but when i try to access fms admin console through public ip (http://212.77.xx.xx:1111/fms_adminConsole.htm) then it gives me the following :
    Internet Explorer cannot display the webpage.
    Any more suggestions Jay (because really ur the only one helping me out in this so far) ??

Maybe you are looking for

  • Error message 'docstogocommon' not found

    When I 1t to edit my documents I keep getting the above error message. It was working about two weeks ago. Please help!!! CuPpIcAkEs

  • Tax Amount Split in AP Credit Note

    Hi Everyone, While trying to Split the tax amount in Print Layout Design for AP Credit Note, I didn't get the desired result. Instead it brings over 1000 tax amount records. When doing the same procedure for AR Invoice, it comes up with the correct r

  • Oracle Forms 6i and QuickAddress Pro V3

    Hi, Has anyone got any experience calling QuickAddress Pro V3 from Forms 6i? Some example code would be really helpful! Thanks

  • Local Area Connections and Device Manager blank

    I'm running a Windows Server 2003 Domain Controller with Windows 7 machines underneath it. Both on the DC and the clients the Network Connections is blank and there are no Devices in the Device Manager. I found numerous other articles having me check

  • Port flex app from tomcat to oracle oas

    any direction given will be appreciated. i have a flex 3 app up and running on my localhost. i'm using a local install of tomcat(6.0.18) and i'm also using blazeds(3.2.0.3978). this combined java/flex app is using remote objects connecting to a back