|
-
May 5th, 2003, 10:00 PM
#1
Thread Starter
Hyperactive Member
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.
-
May 6th, 2003, 08:34 AM
#2
Junior Member
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]
-
May 6th, 2003, 09:05 AM
#3
Frenzied Member
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.
-
May 7th, 2003, 01:54 AM
#4
Thread Starter
Hyperactive Member
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.
-
May 7th, 2003, 02:06 AM
#5
Lively Member
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
-
May 7th, 2003, 07:08 AM
#6
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|