sdht0 / P2P-chat-application

A python program which acts as a P2P chat application, created using Sockets and Tkinter
106 stars 55 forks source link

Connection between 2 systems #1

Open souravrane opened 6 years ago

souravrane commented 6 years ago

Is there a way to connect 2 systems over the internet ? if yes , what ips do we provide in the set and add friend boxes ?

sdht0 commented 6 years ago

You can connect to any system that you can directly access via an ip and port.

souravrane commented 6 years ago

okay ! but the question is how ? i tried out many possible inputs and still did not work out well. Please tell me what is it that is to be added in the respective fields so that 2 different systems connected by internet can converse.

sdht0 commented 6 years ago

It is not enough that the 2 systems are connected to the internet. The 2 systems should be directly accessible via an ip:port. So the systems would need to have a public ip, for example.

ajish097 commented 6 years ago

The number of messages that gets displayed once you connect couple of peers are also changing. Do they get removed or the peer threads not synchronized ?

sdht0 commented 6 years ago

Yeah, they might be bugs in the code. This is a basic implementation that I got working, so your mileage may vary.

marcelozocchio commented 4 years ago

Hello, Siddharta! I added AES CFB mode encryption to your chat application. See if it looks good: https://github.com/sdht0/P2P-chat-application/compare/master...marcelozocchio:marcelozocchio-patch?expand=1