which method would you recomend

(thread moved from beginners to general)

Hi, im relatively new to c++,
doing great so far, and putting the hours in ;)

Im building an app which upon login will connect you to certain ip addresses of which will also be running the same app.

The method of which i believe i should be using is direct tunnelling but as i say im a little new to c++, i have general coding skills, and i have sifted through a lot of forums and sites yet im still very unclear on what the best way forward is to achieve the requirement.

The reason for the connection will be to enable a secure chat, file transfer, and update software auto when connected to the program admin.

All those that have the app installed will once authorised, will be connected to admin client, then from that client all available ip's to connect to will become available to slave clients, this will increase the network size avilable to all users.

so the app needs to be able to handle ports but not via a server, instead it would be direct.

The connections also must ideally be encrypted.

Im kind of looking for what the application RetroShare does, but in text app.

(This is using C++ within Dev C++)

so just to recap, What method should i use to achieve the above?

Many Thanks

Bluey
Why not via a server?

However you do it. You need to make sure to be very serious about security. The port you use should is ssh.

If you were using a server, you would want to use a firewall to block all ports except ssh and http. You would want to have cron jobs running security checkups on a daily basis, using something like tiger, and you would want to set up hosts deny so that bots cannot hack into your system.

Last edited on
Trying to keep it more p2p darknet protocols style.. hence the lack of server.

The idea is so that even in absence of many people, the network remains online with those that remain online.

applogies if i havent made the concept clear enough, i can elaborate a little more if it helps.

Also, i am open to suggestion, thus if indeed it would prove to run via a server for security reasons and then to connect the clients direct post server login then that could be acceptable, but ideally looking to get it set up without any server at all. There will be 2 or 3 admin clients which will act as a server and the ip's will be saved into the slave clients, then upon running, they will find the ip's, connect securely, update and then full access to the network is available.

cheers
I bet you would get a lot of good advice at http://stackoverflow.com/.
Last edited on
cheers iseeplusplus! checking it out now!
Topic archived. No new replies allowed.