-
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.
-
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
-
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.
-
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?
-
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 ;)
-
Kay Guys,
I'm sorry!!:D
I thought only one connection per port per IP was possible... I promise: I'll shut up......
Greetz
Teddo