Search:

Type: Posts; User: RealNiclas

Search: Search took 0.08 seconds.

  1. Replies
    11
    Views
    1,576

    Re: ServerAndClient via Ip

    System.out.println(InetAddress.getByName("www.google.com").getHostAddress());


    The output of this is: "216.58.207.36"





    public class ClientMain {
  2. Replies
    11
    Views
    1,576

    Re: ServerAndClient via Ip

    Socket client = new Socket("81.198.251.108", 4545);

    Just putting in the ip in there is correct or?
  3. Replies
    11
    Views
    1,576

    Re: ServerAndClient via Ip

    Nope, there is just the text from the regular start. ("Waiting for client on port 4545.")
  4. Replies
    11
    Views
    1,576

    Re: ServerAndClient via Ip

    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...
  5. Replies
    11
    Views
    1,576

    Re: ServerAndClient via Ip

    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?
  6. Replies
    11
    Views
    1,576

    ServerAndClient via Ip

    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...
Results 1 to 6 of 6