Skip to content

Commit

Permalink
Use domain name instead of direct IP
Browse files Browse the repository at this point in the history
  • Loading branch information
ZingyAwesome committed Dec 29, 2021
1 parent 489fb7d commit 3160d6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Project exclude paths
/out/
/out/
.idea
3 changes: 1 addition & 2 deletions src/sample/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void start(Stage primaryStage) throws Exception {
window = primaryStage;
ChatClient client = new ChatClient();
try {
client.startConnection("185.218.124.167", 8089); // 185.218.124.167
client.startConnection("vps.zingyawesome.com", 8089);
in = new BufferedReader(new InputStreamReader(client.getClientSocket().getInputStream()));
new Thread(() -> chat()).start();
window.setScene(nameScene);
Expand Down Expand Up @@ -202,7 +202,6 @@ public void chat() {
nameField.clear();
window.setScene(mainScene);
sendMessageField.requestFocus();
System.out.println("3rd if");
doNothing();
}
} catch(ArrayIndexOutOfBoundsException | IllegalArgumentException | SocketException | NullPointerException exception) {
Expand Down

0 comments on commit 3160d6a

Please sign in to comment.