This commit is contained in:
LMAGallois 2020-12-04 18:13:47 +01:00
parent b7a0265261
commit 0199595cc8
2 changed files with 1 additions and 1 deletions

View file

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