|
@@ -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) {
|