File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public void run() {
5151 //creates a new Socket object and names it socket.
5252 //Establishes the socket connection between the client & server
5353 //name of the machine & the port number to which we want to connect
54- socket = new Socket (hostName , 4000 );
54+ socket = new Socket (hostName , 15432 );
5555 if (printOutput ) {
5656 System .out .print ("Establishing connection." );
5757 }
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ public static void main(String[] args) {
2020 ArrayList <Thread > list = new ArrayList <Thread >();
2121
2222 try {
23- // listen for incoming connections on port 4000
24- ServerSocket socket = new ServerSocket (4000 );
25- System .out .println ("Server listening on port 4000 " );
23+ // listen for incoming connections on port 15432
24+ ServerSocket socket = new ServerSocket (15432 );
25+ System .out .println ("Server listening on port 15432 " );
2626
2727 // loop (forever) until program is stopped
2828 while (true ) {
You can’t perform that action at this time.
0 commit comments