title: asp.net core 2.0 web app fails to connect to db2 on System i
body: <p>I am trying to develop a web app to connect to db2 on i series and as part of that I have to query a small file and then display it's some contents in a view.</p>
  
  <p>I'm new to asp.net, but have connected to the same system i server using iDB2Connection, ODBC and OleDb while developing for windows desktop.</p>
  
  <p>Issue from my web app is as follows :</p>
  
  <p>DB2Exception: ERROR [08001] [IBM] SQL30081N A communication error has been detected. Communication protocol being used: "TCP/IP". Communication API being used: "SOCKETS". Location where the error was detected: "xxx.xxx.xx.xx". Communication function detecting the error: "connect". Protocol specific error code(s): "10060", "<em>", "</em>". SQLSTATE=08001.</p>
  
  <p>The code snippet which fails :</p>
  
  <pre><code>public async Task&lt;IActionResult&gt; Index()
  {
      DB2Connection con = new DB2Connection();
      con.ConnectionString = "Server=xxx.xxx.xx;Database=test;UID=xxx;
      pwd=xxxx;
      con.Open(); // fails here
  
      DB2Command com = new DB2Command("select * from lib.file", con);
  
      ...
  </code></pre>
  
  <p>I have tried adding Connection reset = false, Adding TCP keepalive to registry,
  disabling antivirus/firewall to no avail, reading up on Connection Time-out as the reason for the 10060 SQL Code 30081N.</p>
  
  <p>Please help me fix this, I've been breaking my head over this for long.</p>