title: change solaris network timeout
body: <p>I need to have as quick timeout as I get (connection failed) on windows.  but on solaris its much longer, how can I make it shorten? (I'm trying to connect on purpose to a machine that does not exist to simulate a machine is down).</p>
  <p>When I'm performing this <strong>on windows --&gt; timeout --&gt; good</strong></p>
  <blockquote>
  <p>D:&gt;telnet 192.168.23.21 222</p>
  <p>Connecting To 192.168.23.21...Could not open connection to the host, on port 23:</p>
  <p>Connect failed</p>
  <p>D:&gt;</p>
  </blockquote>
  <p>on windows (the target ip does not exist)
  then in about 15 seconds the command terminates.</p>
  <p>However when I perform this from a <strong>solaris --&gt; very long timeout --&gt; not good for my legacy code</strong> machine like this:</p>
  <blockquote>
  <p>myuser@mycomp:~$ telnet 192.168.23.21 222</p>
  <p>Trying 192.168.23.21...</p>
  </blockquote>
  <p>Then the process does not terminate</p>
  <p>and this has major implications for me because i'm migrating an app from windows to solaris, and I must be able to have this timeout (in legacy code which I cannot update), so I need at the OS level to control this timeout to be as short as is currently in windows.  <strong>How can I change this timeout in my solaris OS then? to be short, just as I havbe it on windows</strong></p>
  <p>Thanks</p>