tag:blogger.com,1999:blog-1315445647083902393.post686923858834549028..comments2024-03-25T18:48:55.048+05:30Comments on BioGem Blog: Simple Server and Client Chat using PythonProf. Dr. T. Ashok Kumarhttp://www.blogger.com/profile/14677658375016995194noreply@blogger.comBlogger30125tag:blogger.com,1999:blog-1315445647083902393.post-56586641608592704072021-12-09T09:30:13.783+05:302021-12-09T09:30:13.783+05:30It is not possible in server-client connection. Yo...It is not possible in server-client connection. You can try automatic re-login methods with cookies, catches, or sessions.Prof. Dr. T. Ashok Kumarhttps://www.blogger.com/profile/14677658375016995194noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-6212803853077549602021-12-05T01:38:25.700+05:302021-12-05T01:38:25.700+05:30How do make the server running and able to receive...How do make the server running and able to receive data from client even if client closes connection then later re opens it ?<br />Happy574https://www.blogger.com/profile/11257044435976171135noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-55139740896202789902021-11-15T13:00:24.880+05:302021-11-15T13:00:24.880+05:30Both computers must be connected in the same netwo...Both computers must be connected in the same network. If it is fine, check the firewall and Python program permission of both computers.Prof. Dr. T. Ashok Kumarhttps://www.blogger.com/profile/14677658375016995194noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-33133476049575293502021-11-07T17:21:05.461+05:302021-11-07T17:21:05.461+05:30hello sir, I get an error when running the file &q...hello sir, I get an error when running the file "client", more precisely when I enter the ip address of the "server". after I waited for a while, and I get an error like this.<br /><br />File "c:\Users\User\Desktop\client.py", line 17, in <br /> s.connect((host, port))<br />TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not respond properly after a<br />period of time, or established connection failed because connected host has failed to respond<br /><br />can you help me solve the error I'm experiencing?Muhammad Fajrihttps://www.blogger.com/profile/01646947780138323122noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-69606523303593486062021-05-19T00:16:39.634+05:302021-05-19T00:16:39.634+05:30You can use local IP for connecting within a LAN. ...You can use local IP for connecting within a LAN. Moreover, you can also use public IP if you are connected through a webserver. The only thing you have to understand is your IP must be discoverable within a network.Prof. Dr. T. Ashok Kumarhttps://www.blogger.com/profile/14677658375016995194noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-19737097030740589712021-05-18T19:59:23.994+05:302021-05-18T19:59:23.994+05:30Sir when you said use public ip address are we sup...Sir when you said use public ip address are we supposed to just type the public ip or make some changes into the programpromisehttps://www.blogger.com/profile/12800539264641645792noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-72723369108997672522021-04-17T00:02:44.067+05:302021-04-17T00:02:44.067+05:30Try the following GitHub source code repositories....Try the following GitHub source code repositories. It will be very much helpful to you.<br /><br />https://github.com/Rishija/python_chatServer<br />https://github.com/AakashMallik/Server-Client-multi-chat-socketsProf. Dr. T. Ashok Kumarhttps://www.blogger.com/profile/14677658375016995194noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-17583484266962403782021-04-16T03:43:57.875+05:302021-04-16T03:43:57.875+05:30How would we tweak this to allow for multiple chat...How would we tweak this to allow for multiple chat clients?<br />Anonymoushttps://www.blogger.com/profile/07642739647462802757noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-11929788413492089212021-02-16T18:16:18.582+05:302021-02-16T18:16:18.582+05:30Run the programs with Admin privileges. If not wor...Run the programs with Admin privileges. If not works, check the IP address and Firewall block list in OS.Prof. Dr. T. Ashok Kumarhttps://www.blogger.com/profile/14677658375016995194noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-79539492092134353792021-02-16T17:52:04.651+05:302021-02-16T17:52:04.651+05:30sir it is displying anerror while connecting cl...sir it is displying anerror while connecting client and server using ip .<br />It is displaying error in below line--s.connect((host , port))<br /> plz help us sir ASAPrameshgoudhttps://www.blogger.com/profile/13353973181793383425noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-86638301213669178492020-09-04T13:42:11.072+05:302020-09-04T13:42:11.072+05:30Execute the program as given in this tutorial. Don...Execute the program as given in this tutorial. Don't double-click and run the .py file, it may close immediately after opening.Prof. Dr. T. Ashok Kumarhttps://www.blogger.com/profile/14677658375016995194noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-63360575909200853522020-09-04T12:22:04.090+05:302020-09-04T12:22:04.090+05:30why is my .py files closing immediately after open...why is my .py files closing immediately after opening<br />Anonymoushttps://www.blogger.com/profile/16104677015715423144noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-53253205414829619162020-04-18T09:12:40.840+05:302020-04-18T09:12:40.840+05:30Check whether the packages/modules/functions of Py...Check whether the packages/modules/functions of Python3 is available in the Python. If not, do alternative changes accordingly.Prof. Dr. T. Ashok Kumarhttps://www.blogger.com/profile/14677658375016995194noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-65278677597938144662020-04-17T12:34:06.326+05:302020-04-17T12:34:06.326+05:30Hi, I want to run same code using python not with ...Hi, I want to run same code using python not with python3 how is that possible should i make any changes when i compile with python its not comingAnonymoushttps://www.blogger.com/profile/09966396142212454470noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-66791670334974077732020-01-26T11:58:54.963+05:302020-01-26T11:58:54.963+05:30Sorry. I have no PPT for this tutorial.Sorry. I have no PPT for this tutorial.Prof. Dr. T. Ashok Kumarhttps://www.blogger.com/profile/14677658375016995194noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-18343367642133852452020-01-26T11:54:59.668+05:302020-01-26T11:54:59.668+05:30This comment has been removed by the author.navyasrihttps://www.blogger.com/profile/14876033815246060819noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-34035332381023454672019-11-11T20:53:10.033+05:302019-11-11T20:53:10.033+05:30Try to extract code from https://github.com/Rishij...Try to extract code from https://github.com/Rishija/python_chatServerProf. Dr. T. Ashok Kumarhttps://www.blogger.com/profile/14677658375016995194noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-23906325627220821972019-11-10T15:06:41.338+05:302019-11-10T15:06:41.338+05:30Amazing sir its working for server-client chat .....Amazing sir its working for server-client chat .... can you provide code for multiple client chat with the server..?Ayush_shaZzhttps://www.blogger.com/profile/15371302903028753753noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-8685444859143408432019-07-10T13:16:11.967+05:302019-07-10T13:16:11.967+05:30Thanks for your clean codes
Thanks for your clean codes<br />CoderUserhttps://www.blogger.com/profile/04512741189271696103noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-86870362743909256172019-06-17T19:37:45.203+05:302019-06-17T19:37:45.203+05:30If PCs are connected to different network, use pub...If PCs are connected to different network, use public IPs (<a href="http://www.biogem.org/tool/myip/" rel="nofollow">Public IP Address</a>) of the PCs. If it fails, port-forward through modem router.Prof. Dr. T. Ashok Kumarhttps://www.blogger.com/profile/14677658375016995194noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-91346528782231464752019-06-17T14:53:02.931+05:302019-06-17T14:53:02.931+05:30How can I use this on pcs connected to different n...How can I use this on pcs connected to different network??? I googled it but can't find any acceptable solution.Utkarshhttps://www.blogger.com/profile/10466457224638195406noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-21410876347994356392019-06-04T22:09:47.576+05:302019-06-04T22:09:47.576+05:30If your message is predefined, you can use "p...If your message is predefined, you can use "pickle" to send the message to a socket. Using pickle, you can serialize Python objects.Prof. Dr. T. Ashok Kumarhttps://www.blogger.com/profile/14677658375016995194noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-86875641150075864522019-06-04T21:40:35.596+05:302019-06-04T21:40:35.596+05:30Not possible. Always server must grant access perm...Not possible. Always server must grant access permission to clients. But we can reduce time for connection.<br /><br />Assign static ip for both server and client machines. Also, enter the ip and port number of the server and client machines in the coding itself (server.py and client.py).Prof. Dr. T. Ashok Kumarhttps://www.blogger.com/profile/14677658375016995194noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-90494689170890382802019-06-01T03:30:56.527+05:302019-06-01T03:30:56.527+05:30Is there any way, that the server and the client b...Is there any way, that the server and the client both are ready to to listen to new message or ready to send a new message at any time, here the only problem I personally felt is both sides have to reply simultaneously.<br /><br />I want to send message in 2 line and should see the message on the recipient side in 2 lines without even the recipient responding.Siddharth Sinha - SenorDeLaCruzhttps://www.blogger.com/profile/14266725498336426673noreply@blogger.comtag:blogger.com,1999:blog-1315445647083902393.post-6713386840374920922019-06-01T03:27:57.232+05:302019-06-01T03:27:57.232+05:30This comment has been removed by the author.Siddharth Sinha - SenorDeLaCruzhttps://www.blogger.com/profile/14266725498336426673noreply@blogger.com