Results 1 to 4 of 4

Thread: scanning ip address and ports

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313

    Question

    can i just use the winsock control and tell it to scan the ports or something like that, and would i just use something like the data arive operation and look at the data? But my problem is what if i did that, and I used winsock to look at port 80, and would microsoft internet explorer still get the information comeing in on port 80? or would i intercept it?

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    something like this should work:
    [code]
    dim i as integer
    for i = 0 to 6000 ' or however many ports there are
    winsock1.localport = winsock1.localport + 1
    'scan ports here
    Next i

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313

    Question wont change anything?

    so if i put like a recive data, function ect...it wont change anything? like any of the data? if i just look at it? How would I just look at it?

  4. #4
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Where SteveCRM says "'scan ports here" use winsock and attempt to send some kind of data to that port...and if that data is received with no errors then that port exists/open/used on that ip. I think it's basicly like pinging the ip on misc ports...just sending random packets.


    Gl,
    D!m
    Dim

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