From 4acf999a91ddf25b103bd7fe1b99f38009a41850 Mon Sep 17 00:00:00 2001 From: tejt99 <50763476+tejt99@users.noreply.github.com> Date: Wed, 1 Jan 2020 09:11:26 +0000 Subject: [PATCH] Correlate to request for automated host finding --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1014a38..c3556f2 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ A basic example of a TCP client/server network using Python's socket and threadi ### Running * Download the `server.py` and `client.py` python files for Python 3. -* Run `server.py`. You will be prompted for a host and port for the server. If you are going to run the client on the same computer or local network as the server, use `localhost` as the host name. If you are going to run the client on a different network, use the computer's local IP address (the IP address that resembles [one of these](http://en.wikipedia.org/wiki/Reserved_IP_addresses)). The port can be any 16 bit number (lower than 65535), but must be forwarded on your router if the client will be on a different network. -* Run `client.py`. If the server is running on the same computer, use `localhost` as the host. If the server is running on a different computer, but the same local network, use the local IP address of the computer that the server is running on. If the server is running on a different network, use the external IP address of the network that the server is running under (google [what is my ip](https://www.google.com/search?q=what%20is%20my%20ip)). +* Run `server.py`. The host will be found automatically. You will be prompted for the port for the server. If you are going to run the client on a different network, use the computer's local IP address (the IP address that resembles [one of these](http://en.wikipedia.org/wiki/Reserved_IP_addresses)). The port can be any 16 bit number (lower than 65535), but must be forwarded on your router if the client will be on a different network. +* Run `client.py`. If the server is running on a different computer, but the same local network, use the local IP address of the computer that the server is running on. If the server is running on a different network, use the external IP address of the network that the server is running under (google [what is my ip](https://www.google.com/search?q=what%20is%20my%20ip)). ### Usage The client should successfully connect to the server. Each time the server accepts a new connection, it will print the connection information to the server console. When the server receives a message from any of the clients, it will print the message to the server console and bounce the messsage to all other clients (not the client that sent it).