Hack Forums
[.NET] IP Address (Not Local IP) VB.NET - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] IP Address (Not Local IP) VB.NET (/showthread.php?tid=1169812)



IP Address (Not Local IP) VB.NET - iBoNeT - Mar 29, 2011

Hey!

Need : Label(1)

Click on form and get it :

Code
Imports System.Net
Imports System.IO

Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim req As HttpWebRequest = WebRequest.Create("http://whatismyip.com/automation/n09230945.asp")
        Dim res As HttpWebResponse = req.GetResponse()
        Dim Stream As IO.Stream = res.GetResponseStream()
        Dim sr As StreamReader = New StreamReader(Stream)
        Label1.Text = (sr.ReadToEnd())
    End Sub
End Class

-iBoNeT



* - s3v3red - Mar 29, 2011

I dont get what you mean by 'NOT LOCAL'. If you mean it doesnt return 127.0.0.1 then ok... but otherwise who's IP would it return? :)




* - Shannon R. - Mar 29, 2011

He means all IP's assigned to your router, usually 192.168.1.100 to 192.168.1.105 etc.


* - iBoNeT - Mar 29, 2011

(Mar 29, 2011 06:47 PM)s3v3red Wrote:  I dont get what you mean by 'NOT LOCAL'. If you mean it doesnt return 127.0.0.1 then ok... but otherwise who's IP would it return? :)

Local IP Exp : 192.168.254.254(Your router)

but otherwise who's IP would it return? Exp : 417.323.323.2.3232


* - s3v3red - Mar 29, 2011

So he means NOT EXTERNAL...


* - CaZzUaLLv3x - Mar 29, 2011

do it without whatsmyip
so i guess you c&p this off youtube


* - s3v3red - Mar 29, 2011

(Mar 29, 2011 07:30 PM)CaZzUaLLv3x Wrote:  do it without whatsmyip
so i guess you c&p this off youtube

maybe, maybe not. this snippet is all over the web


* - Dark Noex - Mar 29, 2011

(Mar 29, 2011 06:49 PM)iBoNeT Wrote:  417.323.323.2.3232

That mysterious IP made me laugh.


* - DaRkReD - Mar 29, 2011

(Mar 29, 2011 07:30 PM)Dark Noex Wrote:  That mysterious IP made me laugh.

Like wise seeing how the ipv4 range limit is 255


* - Dark Noex - Mar 29, 2011

(Mar 29, 2011 07:33 PM)Mov DaRkReD Eax Wrote:  Like wise seeing how the ipv4 range limit is 255

Exactly, lol.

And also:
I've seen this source.... 1000 times now. Why reposting?




* - Angry Asswipe - Mar 29, 2011

Not Local = Not 127.0.0.1

Thus, it would be the ip that usually starts with 75.*, 98.*, 97.*, or 1xx.*

www.whatismyip.com vs 127.0.0.1


* - Fake. - Mar 29, 2011

(Mar 29, 2011 08:45 PM)UnknownCh00B Wrote:  Thus, it would be the ip that usually starts with 75.*, 98.*, 97.*, or 1xx.*

What's with the random numbers <100?


* - Pen and Paper - Mar 30, 2011

(Mar 29, 2011 07:33 PM)Mov DaRkReD Eax Wrote:  Like wise seeing how the ipv4 range limit is 255

rofl.

and sure he c&p it. it is very known code. i used it for my rat along time ago.

anyway that ip make me rofl :)