Skip to content
Snippets Groups Projects
Commit a6cbc776 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

can change hostname (or IP number) to connect to another system

parent c1d9f995
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ public class TcpExample3Client ...@@ -53,7 +53,7 @@ public class TcpExample3Client
// a connection to that IP in the form of a Socket // a connection to that IP in the form of a Socket
// object; the server uses a ServerSocket to wait for // object; the server uses a ServerSocket to wait for
// connections. // connections.
socket = new Socket(LOCALHOST, 2317); // locohost? socket = new Socket(LOCALHOST, 2317); // can change hostname (or IP number) to connect to another system
// Now hook everything up (i.e. set up the streams), Java style: // Now hook everything up (i.e. set up the streams), Java style:
is = socket.getInputStream(); is = socket.getInputStream();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment