AdamGreenough Posted July 21, 2010 Share Posted July 21, 2010 Hey Guys, Quick question.. I am connecting two computers over the internet, computer 'A' would listen and computer 'B' would connect to it. Can computer 'B' use TCPRecv and receive data from computer 'A' on the Connected socket or would we have to do a side by side relay and make both of them listen and both of them connect to one another and receiving data locally? Thanks in Advance Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 21, 2010 Share Posted July 21, 2010 (edited) Both computers would be both Server and Client. The two connections, one in each direction, are separate. Edited July 21, 2010 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
ALTIN Posted July 21, 2010 Share Posted July 21, 2010 (edited) I was creating a simple chat application some times ago but I left it in the middle... however I'll return to it someday! The concept here is that you will use the same script in both computers. This script will have both, the Receiver function and the Sender function. -When you start you application on (A), it will try to connect to (B ) and if it can't, then it will stay listening in a certain port... -The same way, you start now the program on (B ) and it will try to connect, and since (A) is already listening, it will connect! Hope this helps you clarifying regards Edited July 21, 2010 by ALTIN Link to comment Share on other sites More sharing options...
AdamGreenough Posted July 23, 2010 Author Share Posted July 23, 2010 @ALTIN, Yes this helps very much but what about the port forwarding feature.. wouldnt you have to port forward both computers? im thinking more something along the lines like what AVG does, im sure not every software that connected to a remote server has to have a port forwarded does it? or would it be using the standard internet port 80 which always seems to be routed Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now