How to connect two different computer in different place using Python ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

How to connect two different computer in different place using Python ?

I want to build chat application there we can share message and file is it possible in Python

20th Nov 2019, 1:07 PM
Programmer Raja
Programmer Raja - avatar
43 Answers
+ 10
I love the Q&A area, sometimes for the passionate debates that we have. Ultimately these discussions can be useful to the audience due to the knowledge that is shared in the process. There need not be any winners or losers. Thank you to MiriellešŸ¶ [Inactive] and bahha for ultimately enlightening the audience through your discussion.
21st Nov 2019, 10:41 AM
Sonic
Sonic - avatar
+ 8
I think any high order library/module that involves network communication will use sockets at the lower level and a chat application will use sockets whether the programmer explicitly uses them or they are implicitly used via the module/library.
21st Nov 2019, 9:58 AM
Sonic
Sonic - avatar
+ 7
First get a master system (sever) and code your app in such a way that it imports the IP addresses of the device of it's users( I mean your app) whenever an account is created or a log in is done, so that the master system will connect all users on one platform (messenger), by the way name your chat appšŸ˜‚šŸ˜ and let the chat app run on the sever as administrator. Hope it helps! It just popped up (In the brain) šŸ˜‚šŸ˜‚.
20th Nov 2019, 11:47 PM
Divine Darkey
Divine Darkey - avatar
+ 6
Sonic, yes you are right! But why did they stop? I wanna see more.
21st Nov 2019, 10:45 AM
Divine Darkey
Divine Darkey - avatar
+ 6
I've got a diagram of a chatbot made with python
21st Nov 2019, 10:49 AM
Divine Darkey
Divine Darkey - avatar
+ 6
for small stuff Mqtt should do the job. python has libraries for it.
21st Nov 2019, 1:25 PM
Oma Falk
Oma Falk - avatar
+ 5
bahha I agreed with your answer, man! It's just to the point and enough to satisfy the need of what's been asked in the question. Now if someone isn't ready to accept yours just 'cause they want theirs to be right, doesn't make you wrong. Don't argue about it. You did your part.
20th Nov 2019, 5:53 PM
ŠØŠ°Ń‰Šø Š Š°Š½Š¶Š°Š½
ŠØŠ°Ń‰Šø Š Š°Š½Š¶Š°Š½ - avatar
+ 5
MiriellešŸ¶ [Inactive] welcome back šŸ˜„ here is the source code of Django and a search for Socket in it. https://github.com/django/django/search?utf8=%E2%9C%93&q=socket&type=
21st Nov 2019, 10:27 AM
Bahhaāµ£
Bahhaāµ£ - avatar
+ 5
bahha && Sonic &&Tedd Bug šŸ && MiriellešŸ¶ [Inactive] Thank you so much šŸ˜
21st Nov 2019, 11:26 AM
Programmer Raja
Programmer Raja - avatar
+ 5
bahha I said if you are right and she is wrong but doesn't want to admit it or she doesn't realize it fine stop the argument and same to you too if she is right and you don't want to admit it and learn fine she should also stop the argument. That was what I said.
21st Nov 2019, 4:13 PM
Divine Darkey
Divine Darkey - avatar
+ 5
Can't believe you guys still here! šŸ™Š LolšŸ˜‚ I've got like 20 notifications from this thread. Seriously gotta unfollow this thread. šŸ˜³ And bahha, she seems to be getting it finally.šŸ˜‰ Good for her! I'd recommend you too to unfollow this thread. Lol
21st Nov 2019, 4:33 PM
ŠØŠ°Ń‰Šø Š Š°Š½Š¶Š°Š½
ŠØŠ°Ń‰Šø Š Š°Š½Š¶Š°Š½ - avatar
+ 4
MiriellešŸ¶ [Inactive] just Google "python chat app" and tell me what all the world is suggesting to use.
20th Nov 2019, 11:19 PM
Bahhaāµ£
Bahhaāµ£ - avatar
+ 4
MiriellešŸ¶ [Inactive] it's not that I rely on Google I'm showing you what the world of tech is saying about Python and connecting or writing a chat app with python. but obviously you can't see it. your understanding of how networking works is astonishing .( Socket is the area WIFI network) someone please tell her what is wrong with that. there is nothing wrong with doing a research, how do you know what you know without searching or reading it somewhere. if you are asked to write a python chat app. what will you write in the code to send messages or a stream of bytes to the other client.
21st Nov 2019, 3:48 PM
Bahhaāµ£
Bahhaāµ£ - avatar
+ 4
Bruh! Both of you are confusing each other as long as you two (MiriellešŸ¶ [Inactive] and bahha) won't understand each other, just stick to what you know
21st Nov 2019, 3:57 PM
Divine Darkey
Divine Darkey - avatar
+ 4
Andrew Bota I think due to its vast array of available libraries Python is a lot more high level than other languages. E.g. you're able to write chat applications even without realizing that there are sockets involved under the hood.
22nd Nov 2019, 12:16 AM
Sonic
Sonic - avatar
+ 3
Sonic you're right, this platform is called SoloLearn, after all we are all learning here. Tedd Bug šŸ expect more šŸ¤£
21st Nov 2019, 10:48 AM
Bahhaāµ£
Bahhaāµ£ - avatar
+ 3
Stanislav yes, Flask relies on Socket.io which is written in JavaScript not python. if it were written in Python it would use Python Socket, without reinventing the wheel with some sort of other implementation of Socket library. which all goes back C programming language.
21st Nov 2019, 1:06 PM
Bahhaāµ£
Bahhaāµ£ - avatar
+ 3
I can see you love debates bahha I'm the kind of person that when you say 1+1=8 and I correct you but you still insist I will just tell you yours is right and walk away šŸƒ. I'm not into that #I'vegotnotime
21st Nov 2019, 4:23 PM
Divine Darkey
Divine Darkey - avatar
+ 3
Well lots of comments here, I got some code that can help you, run it on your system not on SL, first run server then client. šŸ˜Š https://code.sololearn.com/cxUVjJ8aMPAa/?ref=app https://code.sololearn.com/cv59nGyu9xL0/?ref=app
22nd Nov 2019, 2:02 AM
OR!ON šŸ›”ļø
OR!ON šŸ›”ļø - avatar
+ 2
check out the socket library.
20th Nov 2019, 1:39 PM
Bahhaāµ£
Bahhaāµ£ - avatar