System.out.println(InetAddress.getByName("www.google.com").getHostAddress());
The output of this is: "216.58.207.36"
public class ClientMain {
Type: Posts; User: RealNiclas
System.out.println(InetAddress.getByName("www.google.com").getHostAddress());
The output of this is: "216.58.207.36"
public class ClientMain {
Socket client = new Socket("81.198.251.108", 4545);
Just putting in the ip in there is correct or?
Nope, there is just the text from the regular start. ("Waiting for client on port 4545.")
In my firewall are 2 rules for the port 4545 (in/out).
When I try it via ip I use this code:
public class ClientMain {
public static void main(String[] args) throws IOException {
Socket...
I dont think so. The ports are forwarded in my router and my firewall.
Is there any port wich is automatically forwarded, so that I could test it?
Hey,
Iam trying to connect a server with a client via public ip, but it is always is unable to connect.
When I try it with using localhost (in the same network) its working fine.
I already...