title: How can I push website from server to client using wifi connection?
body: <p>I want to make an application that can push ads (website) to client..</p>
  
  <p>Here is the case :
  Client try to connect to internet via wifi. 
  Once the client is connected, server send a website address to client, and a popup (website sent by server) will appear in the client's computer in default browser.</p>
  
  <p>I can list all IP connected to server, but i don't know how to push the website to client</p>
  
  <p>Thanks</p>
  
  <p>Here is the code to list all IP connected to server : (import System.Net library)</p>
  
  <pre><code>        String strHostName = "";
          if(args == null || args.Length == 0){
              strHostName = Dns.GetHostName();
              MessageBox.Show("Local Machine's Host Name: " + strHostName);
          }else{
              strHostName = args[0];
          }
  
          IPHostEntry ipEntry = Dns.GetHostByName(strHostName);
          IPAddress[] addr = ipEntry.AddressList;
  
          int i = 0;
          while(i&lt; addr.Length){
              MessageBox.Show("IP Address "+i+": "+addr[i].ToString());
              System.Math.Max(System.Threading.Interlocked.Increment(ref i), i - 1);
          }
  </code></pre>