Results 1 to 6 of 6

Thread: Connections

  1. #1

    Thread Starter
    Hyperactive Member Dmitri K's Avatar
    Join Date
    Sep 2002
    Location
    West Palm Beach, FL
    Posts
    444

    Connections

    I have a problem.

    Program X connects to a server on port 5555.
    While program X is working, the server will be sending information to program X every 10-20 seconds.

    I want to tap into that connection and display information that was sent from the server to program X in my program.

    I don't have to intercept and block the information, just copy the information into my program. Sniffing is I believe the correct terminology.

    I tried to create a winsock TCP connection on port 5555 but I am not sure if I'm doing it correctly. Thanks.

  2. #2
    Junior Member
    Join Date
    May 2003
    Posts
    17
    Hi,

    I've got a very short answer for you: You can't....
    Only one connection is allowed per port per Ip...
    What you want to build is actually a sort of hacking program, right??

    Greetz...


    Teddo
    [vbcode]
    Private Sub AskAQuestion(Me As Question, Others As Answer)
    MsgBox "Answer: " & Others
    End Sub

    Private Sub HelpOthers()
    If Answer = Known Then
    Give Answer
    Else
    MakeUpAnswerAndLookSmart
    End If
    End Sub
    [/vbcode]
    [vbcode]
    Private Sub Teddo_WakeUp()
    If HelpOther = Possible Then
    HelpOthers
    Else
    AskAQuestion
    End If
    End Sub
    [/vbcode]

  3. #3
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068
    Write a program that acts as a proxy server, have the program you want to trace connect to it then have your app connect to the server on port 5555 and simply relay the data.

  4. #4

    Thread Starter
    Hyperactive Member Dmitri K's Avatar
    Join Date
    Sep 2002
    Location
    West Palm Beach, FL
    Posts
    444
    No it's not a hacking program, it's for reading rates and yes you can do it somehow; SnifMon (http://www.ufasoft.com/sniffer/) does that but I don't know how. It reads packets and displays them. Building a proxy server program is to complicated for a task that I want my program to do, therefore, not worth it; plus I have no idea how to write a proxy server but I can imagine it's hard. Thanks for the ideas. Anyone else?
    Last edited by Dmitri K; May 7th, 2003 at 01:58 AM.

  5. #5
    Lively Member
    Join Date
    Mar 2003
    Posts
    68
    I agree with Spajeoly - but I'd simply call it a Relay, rather than a Proxy.

    It is really quite easy...

    Accept connection from remote PC
    Make connection to correct server
    Receive stuff from remote PC
    Record the number of chars for your stats
    Send them to server
    Receive stuff from server
    Record the number of chars for your stats
    Send them to remote PC

    The only problem is if you cannot get the remote PC to connect to you instead of the server - ie - you don't have the access

  6. #6
    Junior Member
    Join Date
    May 2003
    Posts
    17
    Kay Guys,

    I'm sorry!!
    I thought only one connection per port per IP was possible... I promise: I'll shut up......


    Greetz


    Teddo
    [vbcode]
    Private Sub AskAQuestion(Me As Question, Others As Answer)
    MsgBox "Answer: " & Others
    End Sub

    Private Sub HelpOthers()
    If Answer = Known Then
    Give Answer
    Else
    MakeUpAnswerAndLookSmart
    End If
    End Sub
    [/vbcode]
    [vbcode]
    Private Sub Teddo_WakeUp()
    If HelpOther = Possible Then
    HelpOthers
    Else
    AskAQuestion
    End If
    End Sub
    [/vbcode]

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