title: How to create a routing connection from client site to pc server?
body: <p>I am using Mifarecard reader to connect with the website. Mifarecard reader is connect with user laptop/desktop, due to it use USB connection only. Next, IPv6 localhost address is 192.168.71.155, due to the application is published at the server PC. When user access the link of <a href="http://192.168.71.155/Canteen%20UAT%20-%20MeiSynn/Order" rel="nofollow noreferrer">http://192.168.71.155/Canteen%20UAT%20-%20MeiSynn/Order</a>, two IPv6 address is get from Server PC and client PC, but there is no router/hub, they wouldn’t communicate. It’s causing the reader connect failed<a href="https://i.stack.imgur.com/WBEtb.png" rel="nofollow noreferrer">enter image description here</a>. Any suggestion for solve this issue? 'm new beginner here...</p>
  <pre><code>protected void Page_Load(object sender, EventArgs e)
          {
              DateTime CurrentDate = DateTime.Now;
              DateTime sixhoursbefore = CurrentDate.AddHours(-5.50);
              Date.Text = sixhoursbefore.ToString(&quot;yyyy-MM-dd&quot;);
              //Dates.Text = sixhoursbefore.ToString(&quot;yyyy-MM-dd hh:mm:ss&quot;);
              if (Session[&quot;Username&quot;] == null)
              {
                  Response.Redirect(&quot;Login.aspx?url=&quot; + Server.UrlEncode(Request.Url.AbsoluteUri));
              }
              else if (Session[&quot;Username&quot;] != null)
              {
                  Master.GetLabel.Visible = true;
                  Master.getLoginBtn.Visible = false;
                  Master.GetLabel.Text = &quot;Welcome &quot; + Session[&quot;Username&quot;];
                  Master.getlogoutbtn.Visible = true;
                  Master.getregbtn.Visible = false;
                  MifareCard.Focus();
              }
              else if (Calc_results.Text == &quot;&quot;)
              {
                  Calc_results.Focus();
              }
              else
              {
                  Button10.Focus();
              }
  
              //Get IPv6 of PC Server, due to this code published at there
              IPHostEntry host;
              string ipAdd = &quot;?&quot;;
              host = Dns.GetHostEntry(Dns.GetHostName());
  
              foreach (IPAddress ip in host.AddressList)
              {
                  if (ip.AddressFamily.ToString() == &quot;InterNetwork&quot;)
                  {
                      ipAdd = ip.ToString();
                  }
              }
              ErrorMsg0.Text = ipAdd;
  
              // USB Mifarecard Reader Connection
              icdev = Reader.hc_init(100,9600);
              
              if(icdev.ToInt32() &lt;= 0)
              {
                  Label11.Text = &quot;Reader connect failed &quot; + icdev.ToString();
              }
              else
              {
                  Label11.Text = &quot;Reader connected&quot;;
              }                
          }
  </code></pre>