how to connect sockets using static ip java
问题 I want to know if I can Connect Java sockets using a static IP Address. I've recently bought static IP from my ISP and I want to connect a Client Program that use Java socket with my laptop (as a server). I've tried it before in a closed network and it work normally, but when I've tried it with distributed network it doesn't work. Here is a piece of my code Server : ServerSocket serverSocket = new ServerSocket(5432); Socket client = serverSocket.accept(); Client : Socket socket = new Socket