Freeware utilities for keeping network connection alive?

Hi, I am wondering if anyone has recommendations for a freeware utility that can keep the network connection alive on my 2010 mac mini.
Already have sleep, screen saver, and password lock turned off.  Also using static IP.
When it sits for a while I can no longer ping it from my PC workstation or use iTunes, VNC etc from my phone.
When I open up the mac, which I am using as HTPC, it will connect right away to Google etc using Safari yet it has dropped the share connection to my PC.
Thanks!  Sean

Thanks for the report!

Similar Messages

  • Please Help - To keep LDAP connection alive

    Hi,
    I have used the below function to communicate with LDAP which I have taken and modified from one of the posts in this forum.
    My issue is, each time the function opens a connection, search and closing the connection and its seriously affects the performance.
    I hope we can resolve this by keeping the connection alive. As I am new to this concept, I am not sure how to do this.
    It would be great, if some one help me to keep the connection alive for the below function. Thanks in advance.
    create or replace FUNCTION <name> (loginname VARCHAR2)
    RETURN NUMBER
    IS
    -- Adjust as necessary.
    l_ldap_host VARCHAR2(256) := '';
    l_ldap_port VARCHAR2(256) := '';
    l_ldap_user VARCHAR2(256) := '';
    l_ldap_passwd VARCHAR2(256) := '';
    l_ldap_base VARCHAR2(256) := '';
    l_retval PLS_INTEGER;
    l_session DBMS_LDAP.session;
    l_attrs DBMS_LDAP.string_collection;
    l_message DBMS_LDAP.message;
    l_filter varchar2(35):='xxxx='|| loginname;
    l_count NUMBER:=0;
    BEGIN
    -- Choose to raise exceptions.
    DBMS_LDAP.USE_EXCEPTION := TRUE;
    -- Connect to the LDAP server.
    l_session := DBMS_LDAP.init(hostname => l_ldap_host,portnum => l_ldap_port);
    l_retval := DBMS_LDAP.simple_bind_s(ld => l_session,dn => l_ldap_user,passwd => l_ldap_passwd);
    -- Get attribute
    l_attrs(1) := 'xxxx';
    l_retval := DBMS_LDAP.search_s(ld => l_session, base => l_ldap_base, scope => DBMS_LDAP.SCOPE_SUBTREE, filter => l_filter, attrs => l_attrs, attronly => 0, res => l_message);
    l_count:=DBMS_LDAP.count_entries(ld => l_session, msg => l_message);
    -- Disconnect from the LDAP server
    l_retval := DBMS_LDAP.unbind_s(ld => l_session);
    return l_count;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('Error :'||SQLERRM);
    return 0;
    END <fun name>;
    Thanks,
    Praveen
    Edited by: 920577 on Mar 13, 2012 9:40 AM
    Edited by: 920577 on Mar 13, 2012 9:41 AM

    The basic template looks as follows:
    SQL> create or replace package Foo as
      2 
      3  procedure LdapLogoff;
      4  function GetData( empName varchar2 )  return number;
      5 
      6  end;
      7  /
    Package created.
    SQL>
    SQL> create or replace package body Foo as
      2 
      3  isLoggedOn boolean;
      4 
      5  procedure LdapLogon is
      6  begin
      7          DBMS_OUTPUT.put_line( '..running logon()' );
      8          isLoggedOn := true;
      9  end;
    10 
    11  procedure LdapLogoff is
    12  begin
    13          DBMS_OUTPUT.put_line( '..running logoff()' );
    14          isLoggedOn := false;
    15  end;
    16 
    17  function GetData( empName varchar2 ) return number is
    18  begin
    19          if not isLoggedOn then
    20                  LdapLogon();
    21          end if;
    22         
    23          DBMS_OUTPUT.put_line( '..running GetData() for '||empName );
    24          return(
    25                  round(DBMS_RANDOM.Value(1,100))
    26          );
    27  end;
    28 
    29 
    30  --// main()
    31  begin
    32          DBMS_OUTPUT.put_line( 'Package Foo loaded into memory' );
    33          isLoggedOn := false;
    34  end;
    35  /
    Package body created.
    SQL>
    SQL>
    SQL> select empno, ename, Foo.GetData(ename) as ID from emp order by empno;
         EMPNO ENAME              ID
          7369 SMITH              23
          7499 ALLEN              47
          7521 WARD               88
          7566 JONES              71
          7654 MARTIN             91
          7698 BLAKE              28
          7782 CLARK              92
          7788 SCOTT              91
          7839 KING               48
          7844 TURNER             89
          7876 ADAMS              64
          7900 JAMES              16
          7902 FORD               18
          7934 MILLER             35
    14 rows selected.
    Package Foo loaded into memory
    ..running logon()
    ..running GetData() for SMITH
    ..running GetData() for ALLEN
    ..running GetData() for WARD
    ..running GetData() for JONES
    ..running GetData() for MARTIN
    ..running GetData() for BLAKE
    ..running GetData() for CLARK
    ..running GetData() for SCOTT
    ..running GetData() for KING
    ..running GetData() for TURNER
    ..running GetData() for ADAMS
    ..running GetData() for JAMES
    ..running GetData() for FORD
    ..running GetData() for MILLER
    SQL>
    SQL> select empno, ename, Foo.GetData(ename) as ID from emp where rownum = 1;
         EMPNO ENAME              ID
          7369 SMITH               9
    ..running GetData() for SMITH
    SQL>
    // call Foo.Logoff manually when done, or leave it to
    // Oracle to close and release resources when the
    // session terminates

  • ADK - Keeping EIS Connections Alive

    Hi,
              I am using the ADK that comes with WL 8.1 SP3. The challenge I am facing is to keep my connections alive while there is no activity (at the TCP/IP socket level) between the app server and the EIS.
              The EIS closes any sockets after 30 minutes of inactivity causing the connections to go into CLOSE_WAIT state.
              Is there any method I can use within the connector to keep pinging the server and make sure these connections have TCP/IP traffic?
              Has anyone used the <test-frequency-seconds> weblogic-ra.xml? What is its purpose? pinging?
              Appreciate your insight..

    Hi
              I have a requirement, which is some what similar to what is mentioned above.
              I too have to ping the interface at regular intervals to keep the connection alive. I also assumed that, we can use the test-frequency-seconds attribute. But for that to work, we have to implement the interface, http://java.sun.com/j2ee/1.4/docs/api/javax/resource/spi/ValidatingManagedConnectionFactory.html, which is there only from weblogic 9.
              But since our client is using weblogic 8.1, we are tied to that version.
              Can anyone please assist in solving this.

  • Keep wifi connection alive

    Hi. I've noticed that after moving from opensuse to arch, my wifi connection dies on me after inactivity. I've tried this workaround:
    * Add a crontab to ping a website every 15 minutes. I'm using this command:
    * ping -c 4 www.google.com
    However, the connection still dies. Is there a better way to keep my connection alive? Perhaps if I increase the number of packets?

    As per this ubuntu forum post, I found something that might do the trick
    http://ubuntuforums.org/showthread.php?t=420959
    Adapted to arch, this may work:
    #!/bin/sh
    HOST=www.google.com
    ping -c 1 -W 10 $HOST &>/dev/null
    if [ $? -eq 0 ]; then
    #ping is ok
    exit
    else
    #first try
    ifconfig wlan0 down
    sleep 3
    ifconfig wlan0 up
    sleep 10
    ping -c 1 -W 10 $HOST &>/dev/null
    if [ $? -eq 0 ]; then
    exit
    else
    #second try
    /etc/rc.d/wlan restart
    /etc/rc.d/network restart
    iwconfig wlan0 essid NOAH_S_ARK
    sleep 10
    ping -c 1 -W 10 $HOST &>/dev/null
    fi
    fi
    The corresponding root crontab entry to run it every 20 minutes is
    */20 * * * * <nameofscript>
    Gonna try when I get home.

  • How to keep the connection alive?

    Hello! Happy new year!
    I have to write an HTTP server that comunicates with many clients in the same time,but keeps the connection with a client open if there the corresponding header is Keep-Alive. I have used threads,and I've tested my program in the following way: I've requested the one page of the site and then I've followed a link from that page. I expected that the broowser and the server talk to the same thread every time,but it seems that they don't. The code I've written is:
    //HTTPServer class
    ServerSocket serverSocket = null;
            boolean listening = true;
            try {
                serverSocket = new ServerSocket(80);
            } catch (IOException e) {
                System.err.println("Could not listen on port: 80.");
                System.exit(-1);
            while (listening)
                  new HTTPMultiServerThread(serverSocket.accept()).start();
    //HTTPMultiServerThread
    public void run() {
         //     System.out.println(socket.toString());
              try {
    while(!serverSocket.isClosed())){
                  DataOutputStream out = new DataOutputStream(socket.getOutputStream());
                  DataInputStream in = new DataInputStream( socket.getInputStream());
                  int nrBytes = in.available();
                  if(nrBytes > 0){
                       byte[] bytes = new byte[nrBytes];
                       in.read(bytes);
                       System.out.println("Procesez mesajul:" + nrBytes + new String(bytes));
                       HTTPMessage processedMess = new HTTPMessage(bytes).processMessage();
                       System.out.println("Inchid conexiunea.");
                        log("log.txt", new HTTPMessage(bytes).getStatusLine() + " " + new Data().getCurrentTime());
                   //send the message   
    out.write(processedMess.getBytes(),0,processedMess.getBytes().length);
                       /* inchid conexiunea
                  else{
                       String ret = new String("HTTP/1.1 500 Internal Server Error\n");
                        ret += "Host: cristi\n";
                      ret += "Date: " + new Data().getCurrentTime()+"\r\n";
                      ret += "\r\n";
                      ret += "<html><body><p>HTTP/1.1  500 Internal Serve Error</p> </body><html>\r\n";
                      out.write(ret.getBytes());
                  out.close();
                  in.close();
                       if(new HTTPMessage(bytes).getHeaderValue("Connection").equals("Close"))
                  socket.close();
         }//end while
              } catch (IOException e) {
                  e.printStackTrace();
        }I would also like to know how many clients are waiting to be served,in order to develop statistics about the server response time. 10X

    hi
    same to u .
    i think what i get from ur code that ....
    use some vector at the server side and whenever any client is connected (offcourse first time or not (depend on u !!)) create an object corresponding(generally created by server for every client) ..
    save this in the vector .. and pass it the size of vector to the client with the response .
    may this help u .
    regards
    akash
    Indiagames Ltd
    [email protected]
    India

  • What should the"default behavior" be for WiFi network connections?

    I Have been able to at least temporarily fix the plethora of problems encountered after downloading Mountain Lion to my 2009 17" MBP just ten days ago.  Thanks to the time and effort of so many posters that are much more savvy than me, I successfully executed the steps suggested in many of the posts and with good results.  It surely beats running down to the Apple store and being told that I am the only one with a problem.
    Okay,  I've  realized that I don't really know what the default behavior of the WiFi network connection should be? 
    Specifically:
    Should the Wi-Fi drop down in Network always be" looking for networks", even though I am obviously on my Network?
    Should the Wi-Fi be connected at all times even when your computer is in sleep mode- or deep sleep mode?  There have been so many problems with Wi-Fi dropping off,slow or hanging loads, etc.
    I unchecked "ask to join networks, in Network preferences thinking it might stop looking for networks when it doesn't need to because I'm already on mine.  I do see my neighbors (four neighbors) in the drop down in Network. 
    How do you get into Time Capsule's settings, to check speeds, especially ping?  What should the ideal settings be?
    How do you know if your DHCP license is renewed? I've heard that feature isn't working and may be the culprit to some of the Wi-Fi problems.
    I'll look forward to your help in understanding more about this.  I've been in the support  area a lot lately, I've read plenty of definitions, and explanations of the different options to choose from in Apple's support area, but nowhere have I seen anything that explains what the default behavior should be or perform  like. 
    Thanks, as always.

    Generally, you don't want to tweak the wifi settings. It pretty much takes care of itself. The caveat to that is, of course, if you're experiencing problems.
    The 'looking for networks' behaviour only happens when you log in, wake the mac from sleep OR when you click on the wifi icon. You clicking on it tells the mac  "I want to see what networks are available" - so it does a scan for you to check to see if any new networks have appeared since you last clicked on it (or woke/logged in). In short, if you don't want it to look for new networks, don't click on the icon!
    Unchecking the 'ask to join networks' option only applies when your mac detects a new network (such as when it wakes) that you haven't already authorised; it'll ask you to confirm whether you want to join it or not. Otherwise, if the network is open it'll join automatically. You should keep this selected if you travel around with your Mac. It's a good idea to know what network you're on before you start plugging in passwords or typing other things into the mac.
    There is a utility that you can use for ping and traceroute called 'Network Utility'. Click on the Spotlight icon in the top right of your screen and type "Network' and you should see it at the top of the list. Hit 'return' to open it.
    DHCP licences are normally renewed automatically by your router every 24 hours. Again, there's no reason to be messing about with that unless you're experiencing problems.
    If you're experiencing wifi dropout, let us know, and we'll make some suggestions, but if you're not, you're best leaving your mac to manage the background processes. It knows what it's doing!
    Message was edited by: softwater

  • Keep JDBC connection alive

    Hi,
    I am running into problem with JDBC connection outside of the firewall. The firewall disconnect idle connection after 15min. Is there a way to keep JDBC alive for
    as long as the application is running?
    Thanks,

    Notwithstanding connection pools generally managed by an application server, I would not advocate keeping a connection open beyond the immediate need for it. Certainly there is a performance cost to open a connection and that must be weighed against the potential for orphaned resources by leaving a connection in a trapped state. Personally I have never found an overriding NEED to keep a connection open beyond the method where the connection was first opened.
    Using a connection pool makes the cost even less to open and release connections on an as needed basis.
    Just my 2 krupplenicks worth, your mileage may of course vary.
    PS.

  • Custom TCP/IP Settings for different network connections

    I have about 4-5 different networks I hop onto all the time.
    The problem is my brother will NOT use Auto-configure using DHCP. So, I have to get the settings and put them in everytime, with his static IP, gateway, DNS and the such. Is there a way to save them to that specific connection and whenever my macbook pro sees HIS network will use HIS settings? I mean, it would make sense to be able to custom fit a connection just to his connection.
    So, that when I am on his network I wouldn't have to retype/input his settings because the SSID tells the computer that I am on his network and to use his settings. When I am on different networks it would use the settings appropriate to that network.
    I don't know if that made any sense, respond back if it didn't and I will try to clarify better.

    Add a "Location" for that network configuration.
    System Preferences > Network > Location > Edit Locations
    Then when you want to switch to that network, click on the Apple > Locations and select the Location you set up.
    I have a few locations set up this way and it works well.

  • Firewall always asks for incoming network connections

    Some of my installed applications like Dropbox, Coda, Adium, jDownloader... are always asking if incoming network connections are allowed?
    How can I turn this off? It's getting really annoying!

    I'm having this problem, too. It happens with EVERYTHING, including Word, Excel, and Photoshop. I have my Firewall turned on, but I also have it set to allow those programs to accept incoming network connections.

  • Mail.app keeping IMAP connections alive and active

    Hi all,
    I was having some issues with the MySQL databases on my website, so I gave my hosting provider a call.
    It seems that Mail.app is opening up an IMAP process for each of my 24 e-mail accounds, and keeping it alive for as long as Mail is running. According to the representative I spoke with, e-mail clients, even with IMAP should start a process, synchronize the mail, and close the process, and all of this should happen in around 0.2 seconds.
    The problem is that there is a cap of 20 processes on my hosting server, so Mail's behavior is basically causing lots of problems - as long as mail is open and all of my accounts are enabled, my website can't access my MySQL databases.
    Does anyone know of a solution to this problem? I used to have "Automatically synchronize mailboxes checked" and tried unchecking this for troubleshooting purposes, but the same thing still happens.
    Any ideas or suggestions will be very appreciated.
    Thanks!

    From what I've read, imap is designed to create a persistent connection, and keep it open until you quit the program.
    But there's another problem which might be getting in your way: mail.app does indeed create persistent connections, but then rather than re-using them, it seems to open another new persistent connection each time it checks the mail. So the processes never close, and they start to pile up as new ones are added.
    What's more, mail opens multiple connections per account. Looks like it opens 4 connections to check each separate account, and those all get left open until you quit the program.
    The reason they do this is, so they say, "performance". More connections = faster mail. But it's a real headache when it doesn't close old processes before opening new ones.
    Also an option to limit the number of connections made per account would be welcome.
    Thunderbird does exactly the same thing, by the way.

  • Simple printer for my network (connected to windows pc)

    I'm looking for a printer to connect to a windows PC that will let me print through the network from my MacBook and iMac.
    I just want a simple and cheap printer, nothing too fancy.
    I've got a HP3650 now, but I cant get it too work like this (tried everything from standard osx drivers to cups, foomatic, gutenprint etc..) But nothing seemed to work for me.

    I would recommend you purchase a printer that has its own network card (wired or wireless). That way you don't need to share it from Windows, allowing the Mac's to connect directly to the printer using their provided driver.

  • Keep database connection alive

    I'm developing a windows desktop (standalone) application which runs as an endless loop.
    Once the application started, a database connection is created (java.sql.Connection) and from now on used to read data from the database.
    Connection is created like this:
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    Connection con = DriverManager.getConnection(connectionUrl);
    Does the connection will be kept alive forever?
    If NOT, what to change in my program?
    Edited by: user10511764 on Jun 26, 2011 4:47 AM

    If you are going to be continually using your JDBC connection, then you don't
    really need to go to the added complexity of using pooling. Just use the connection
    indefinitely, and unless there is some DBMS or firewall configured lifetime limit,
    barring error, the connection should be fine indefinitely. If you get an occasional
    failure, just make a new connection. A pool won't do any better, and if/when it
    makes a new connection for you, you will have to re-obtain all your statements
    etc, just as if you remade your own connection...

  • How to keep NetStream.Connect alive even when noone is connected?

    is there any timeout set for NetStream.Connect? I am having an issue when one streamer goes to 2way channel and waits for another party to join but after about 1 minute (if noone is receiving that streamer signal) the NetStream.Connect.Close event is fired up. I want to be able to wait little bit longer.
    Any help much appreciated.

    Dear Alll,
    Please help.

  • Network Connectivity

    I have a network with three computers hardwired through a router.  All computers have unique IP addresses assigned by DHCP.  All three are part of the same homegroup.
    Computer 'M' is using Windows 7 Ultimate, 'J' is running Win 7 Home Premium and 'N' is running Win 8.1 update 1.
    Computer 'J' has a license server installer for a software program that organizes and renders pictures for printing.  Images are stored in an SQL database on this computer and the software on computers 'M' and 'N' operate as work stations using the
    software that accesses the license server and the SQL database to render those pictures for printing.  They both need to maintain access to the license server to keep the rendering program active.
    As long as there is something happening on either 'M' or 'N', the connection to the license server remains active but if there is a period of inactivity of as little as an hour, the connection to the license server times out and the rendering/printing program
    on the workstation shuts down.
    In Win xP there was a KeepAlive key in the registry (HKLM\system\CurrentControlSet\services\Tcpip\parameters, I think.)  I presume this would have kept the connection alive for as long as the value was set for.  This key doesn't exist in Win 7
    or 8 but I'm hesitant to add it without some comment from an expert.  I also don't know what value to use to keep the connection alive indefinitely if indeed this is the right place to be doing this.
    Can anyone give me an answer to this?  The software manufacturer doesn't seem to know the answer and neither do the very helpful folks in one of the Microsoft stores.
    Mike

    Hi,
    First, Can you successfully ping the License server? If the ping is successfully, the network connection is OK, as you said in the post, there is a database configured in the license server, normally, connecting the SQL Server database will use a TCP port,
    The default instance would listen on TCP port 1433, the port number by default is not opened at the firewall, I suggest to add an exception for this port:
    1.Open Windows Firewall by clicking the Start button Picture of the Start button, and then clicking Control Panel. In the search box, type firewall, and then click Windows Firewall.
    2.In the left pane, click Advanced settings. 
    3.In the Windows Firewall with Advanced Security dialog box, in the left pane, click Inbound Rules, and then, in the right pane, click New Rule.
    4. Select “Port”, then port number 1433, or any other port you want, then allow the connection.
    You can also find the article for detailed steps:
    http://windows.microsoft.com/en-hk/windows/open-port-windows-firewall#1TC=windows-7
    Besides, I suggest to remove any other anti-virus software at the control panel to run the test, this is the configuration we can do in Windows system.
    Regards
    Wade Liu
    TechNet Community Support

  • My mid 2010 MacBook Pro loses network connectivity

    I have four mac computers running on our home network.  My mid 2010 MacBook Pro has become notorious for losing network connectivity with the other computers.  It maintains it's internet connectivity consistently, but it's ability to see and connect with the other computers on the local network is finicky at best.  The other three computers (2008 iMac, 2012 iMac, 2012 MacBook Pro) all connect to our Actiontec MI424WR Fios router via ethernet, whereas the mid 2010 MacBook Pro connects via WiFi.
    If anyone could please help me troubleshoot the issue, that'd be much appreciated.
    Sincerely.

    Back up all data before making any changes.
    Step 1
    Take all the applicable steps in this support article.  
    Step 2
    If you're running OS X 10.8.4 or later, run Wireless Diagnostics and take the remedial steps suggested in the summary that appears, if any. The program also generates a large file of information about your system, which would be used by Apple Engineering in case of a support incident. Don't post the contents here.
    Step 3
    If you're not using a wireless keyboard or trackpad, disable Bluetooth by selecting Turn Bluetooth Off from the menu with the Bluetooth icon. If you don't have that menu, open the Bluetooth preference pane in System Preferences and check the box marked Show Bluetooth in menu bar. Test. Continue if you find that Wi-Fi is faster with Bluetooth disabled.
    From that same menu, select Open Bluetooth Preferences. If the box labeled Discoverable is checked, uncheck it. Click the Advanced button, and in the sheet that opens, uncheck the top three boxes, if any are checked. Click OK. Enable Bluetooth and test again.
    If the application called "Bluetooth Setup Assistant" is running, quit it.
    Step 4
    This step will erase all your settings in the Network preference pane. Make a note of them before you begin, and recreate them afterwards. It may be helpful to take screenshots of the preference pane.
    Triple-click the line below on this page to select it:
    /Library/Preferences/SystemConfiguration
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A folder should open with an item named "SystemConfiguration" selected. Move the selected item to the Trash. You may be prompted for your administrator password.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.
    Reset the System Management Controller.
    Step 5
    Make a "Genius" appointment at an Apple Store, or go to another authorized service center.
    Back up all data on the internal drive(s) before you hand over your computer to anyone. There are ways to back up a computer that isn't fully functional — ask if you need guidance.
    If privacy is a concern, erase the data partition(s) with the option to write zeros* (do this only if you have at least two complete, independent backups, and you know how to restore to an empty drive from any of them.) Don’t erase the recovery partition, if present. 
    Keeping your confidential data secure during hardware repair
    *An SSD doesn't need to be zeroed.

Maybe you are looking for