-
Rat Help
I am creating a rat (remote authoring tool). i need help with how to connect between the client and rat (server). I am currently using winsock.
I have been testing the code between me and my friend (using his ip address), but he is behind a router and firewall, so i cant get it to work.
Could somebody tell me how to get it to work over the internet, or link me to a tutorial?
-
Re: Rat Help
There are two solutions.
Firstly, you could just open the port on his router that you use to connect peer to peer.
Secondly, you could have a CLIENT > SERVER > CLIENT setup where the server is the only node that will need a listening port to be manually opened on the router. Both clients will have routers that automatically open the port one they connect to the client.
Hope this helps,
Jord
-
Re: Rat Help
Intraman,
I think the problem the user is ahving is connecting behind a router, so which ever set up you go for you will still have problems.
To the question,
For your router you should have some kind of control pannel, what you need to do is find the options for port forwarding, fill in the port your application uses and then the local ip of the machine behind the router. All that will happen then is when your router getsb a request on that port (because all data goes to the router first) it will forward it to the selected machine Ip.
If you need any more help just let me know :)
-
Re: Rat Help
well, first of all... thank you for that bit of info - it cleared some things up...
Second: How could i create a program, where i have one version, that can connect to another (different) version. Is this even possible? Does it require a server?
My goal is to have my program - connect to another program over the internet. I do not have a server. I am kinda new... so i dont know...
-
Re: Rat Help
ps: will it work with some other controll besides winsock, or is that my best chance...
-
Re: Rat Help
Winsock is the best option,
If you set up a 2 program relationship you will have a server because one of them acts as a server, and the other one is the client.
The server is allwasy the listening winsock, and the client connects. There si no program you can create that will set up port forwarding on ever router, it has to be done manually by the user :)
Pino
-
Re: Rat Help
THANK YOU PINO - I understand now... that clears up everything. If anyone knows any good tutorials or code samples that they know of.. than that would be great - kind of a shove in the right direction.
thanks very much...