{"id":22022676,"url":"https://github.com/sitamgithub-msit/socket-programming-python","last_synced_at":"2025-07-07T16:38:28.031Z","repository":{"id":215781535,"uuid":"739735642","full_name":"sitamgithub-MSIT/socket-programming-python","owner":"sitamgithub-MSIT","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-06T14:47:36.000Z","size":256,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T16:49:46.896Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sitamgithub-MSIT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-06T11:40:44.000Z","updated_at":"2024-01-08T14:51:06.000Z","dependencies_parsed_at":"2024-11-30T15:32:00.060Z","dependency_job_id":null,"html_url":"https://github.com/sitamgithub-MSIT/socket-programming-python","commit_stats":null,"previous_names":["sitamgithub-msit/socket-programming-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitamgithub-MSIT%2Fsocket-programming-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitamgithub-MSIT%2Fsocket-programming-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitamgithub-MSIT%2Fsocket-programming-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sitamgithub-MSIT%2Fsocket-programming-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sitamgithub-MSIT","download_url":"https://codeload.github.com/sitamgithub-MSIT/socket-programming-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245087565,"owners_count":20558785,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-30T06:22:15.869Z","updated_at":"2025-03-23T10:26:48.437Z","avatar_url":"https://github.com/sitamgithub-MSIT.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Socket Communication Setup\n\n## Overview\n\nThis project showcases a basic Python socket communication setup for client-server interaction. The primary objective is to facilitate communication between a server and client nodes.\n\n## Server Side\n\n1. Create a server socket.\n2. Bind it to a specified IP and port.\n3. Listen and accept incoming client connections.\n4. Handle communication with connected clients.\n5. Close the server socket when done.\n\n## Client Side\n\n1. Create a client socket.\n2. Connect to the server using the server's IP and port.\n3. Send requests or data to the server.\n4. Close the client socket when communication is complete.\n\n## Execution\n\n1. Ensure you have Python installed. This project is compatible with Python 3.6 and above.\n2. Set up a Python virtual environment: `python -m venv myenv`.\n3. Activate the virtual environment:\n   - On Windows: `myenv\\Scripts\\activate`.\n   - On macOS and Linux: `source myenv/bin/activate`.\n4. Install the required Python version mentioned in [requirements.md](requirements.md).\n5. Run the server script: `python server.py`.\n6. Run the client script: `python client.py`.\n\n## Results\n\nThe server and client scripts should run without any errors. The server script should display the following output:\n\nServer and client connection established.\n![Server and Client](assets/client_server_connection.png)\n\nMultiple clients can connect to the server at the same time.\n![Multiple Clients and Server](assets/multipleclient_server_connection.png)\n\n## Conclusion\n\nThis project provides a straightforward example of setting up a Python socket communication system. You can adapt and modify the scripts to suit your specific requirements.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsitamgithub-msit%2Fsocket-programming-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsitamgithub-msit%2Fsocket-programming-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsitamgithub-msit%2Fsocket-programming-python/lists"}