Asp.NET|Get Ip Of a user when he open the site\click on a button
<p>Simple as that. </p>

<p>i want to save the ip on a session id, or. when he click on a button it will do like that:</p>

<pre><code>using (StreamWriter writer = new StreamWriter(fileStream))
        {
          writer.WriteLine(TextBox1.Text);
          }
</code></pre>

<p>(its not all the code ofc)</p>

<p>when he click on a button, it will wirte the ip into the file. :)</p>

<p>any way to do so?</p>
