https://github.com/beastwick18/sockets
https://github.com/beastwick18/sockets
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/beastwick18/sockets
- Owner: Beastwick18
- Created: 2023-02-16T20:57:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-10T18:16:16.000Z (over 3 years ago)
- Last Synced: 2026-01-01T02:35:30.535Z (7 months ago)
- Language: Python
- Size: 3.72 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
Awesome Lists containing this project
README
In order to run this code, you must have python 3
To start the server, run the following command:
python3 server.py
where is the port number you want the server to run on. This parameter is optional, and will default to 8080.
the ip address is always localhost or 127.0.0.1, or whatever your machines ip address is
To start the client, run the following command:
python3 client.py
or...
python3 client.py
is the ip address of a running instance of the server.py code
is the port of a running instance of the server.py code, not the client's port
is also optional, and will default to 8080
is the file you wish to recieve from the server.
The file location must be relative to the current working directory of the running server.py instance
No preceding '/' should be present before the filename.
Files nested in directories are fine, however.
To connect in a browser, type in the following address into the address bar:
http://:/
Here, , , and refer to the same parameters as listed above for client.py.