Results 1 to 6 of 6

Thread: Tcp Listening?

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2009
    Posts
    34

    Tcp Listening?

    Hey Vbforums , i have a problem

    Lets say i got a listview and that listview contains ip and open port
    i wan't the form to search open ports and put them in the Right lisview/Column example :

    messagebox("Ip Found")

    here is what i have a.t.m

    Code:
     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            ListView1.Columns.Clear()
            ListView1.Items.Clear()
    
            ListView1.View = View.Details
    
            ListView1.Columns.Add("Ip Addres", 180, HorizontalAlignment.Left)
            ListView1.Columns.Add("Open Port", 70, HorizontalAlignment.Left)
            
        End Sub
    
      Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            Listview1.items.add(textbox1.text)
        End Sub
    Can Some1 Help me out i feel like here

  2. #2
    Fanatic Member
    Join Date
    Oct 2008
    Location
    Dominican Republic
    Posts
    733

    Re: Tcp Listening?

    Hey, check out these threads about ListView, I think they might come in handy for you .

    First Thread
    Second Thread
    "In our profession, precision and perfection are not a dispensable luxury, but a simple necessity."
    Niklaus E. Wirth


    Rate any post that helped you, it's a good way of saying thanks
    Please specify your Visual Studio Version!

    Why rating is useful

    My Code Bank Submissions: How to determine Windows Version| Working With Mouse Events | Blocking Input Using API | Get host's IP | Minimize to system tray "animated" | Colored ListBox (custom fonts, colors, highlight) Updated -New Class! | [VS 2008] Strong encryption and hashing class - Updated! 31/August/2009 | Create a shortcut using IWshRuntimeLibrary

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2009
    Posts
    34

    Re: Tcp Listening?

    thnx but know i need to know
    example i open file(named support.exe)
    then Client(named Client.exe )
    can see my ip how to do that
    i know it involves stream reading and writing

  4. #4
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Tcp Listening?

    IP addresses dont have anything to do with stream reading and writing... unless you are talking about writing something to a network stream and sending it via the .NET sockets classes (TCPClient etc).
    Im not sure exactly what you want to do, can you explain a little better?
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  5. #5
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: Tcp Listening?

    Are you saying you want to create a port scanner?
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  6. #6

    Thread Starter
    Member
    Join Date
    Jun 2009
    Posts
    34

    Re: Tcp Listening?

    yes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width