LMAGallois 3 years ago
parent
commit
0199595cc8
2 changed files with 1 additions and 1 deletions
  1. BIN
      Application/Clavardage/bin/User.class
  2. 1
    1
      Application/Clavardage/src/User.java

BIN
Application/Clavardage/bin/User.class View File


+ 1
- 1
Application/Clavardage/src/User.java View File

@@ -172,7 +172,7 @@ public class User{
172 172
 	public void TCPmessage(int index) throws IOException {
173 173
 		Socket link=null;
174 174
 		try {
175
-			link=new Socket(this.userChatList.get(index).addIP,this.portTCP);
175
+			link=new Socket(this.userChatList.get(index).addIP,this.userChatList.get(index).portTCP);
176 176
 
177 177
 			System.out.println("Server is listening on port"+this.portTCP+"of localhost");
178 178
 		}catch(IOException e) {

Loading…
Cancel
Save