Jump to content

Recommended Posts

Posted

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

Posted (edited)

I was creating a simple chat application some times ago but I left it in the middle... :blink: 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 by ALTIN
Posted

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...