Kumar
Kumar

Reputation: 1017

gcloud compute engine windows server port 8080

I setup a gcloud vminstance for windows 2012 and have apache tomcat installed

I can access from within the server by doing localhost:8080 and see the apache tomcat home page.

I have a static ip setup and have setup firewall rules tcp:8080 and udp:8080 for both http and https (though I need only http) as mentioned here Can't open port 8080 on Google Compute Engine running Debian

but no luck yet I cannot get to this from outside of gcloud...when I try my static up from outside I do not get anything....I can ping ip address but not ip address:8080 (not sure if its possible to ping with port number)

from the browser (outside gcloud) I get This webpage is not available ERR_CONNECTION_TIMED_OUT

update - For testing I disabled the Windows firewall and no luck yet. I have now re enabled the firewall and will try to create a new instance...and just try port 80 ...will not install apache tomcat while testing this.

Thanks,

Upvotes: 0

Views: 2625

Answers (1)

Zachary Newman
Zachary Newman

Reputation: 21384

There's a couple of possibilities here:

  1. Packets are being stopped by the GCP firewall.

    One way to test this would be to create a Linux VM with identical firewall settings, and see if you can receive packets there. This is a decent amount of work, though.

  2. Packets are being stopped by a Windows firewall.

    See Managing the Windows Sever 2012 Firewall for information on checking these firewall settings.

  3. Apache Tomcat is listening on the wrong network interface.

    What happens if you log into the Windows 2012 and instead of opening localhost:8080 in your browser, you open [Windows IP address]:8080 (try various IP addresses associated with your VM instance; you should have an "internal" one and an "external" one. Check the output of ipconfig, as well as the Cloud Console).

    If none of these (besides the localhost IP) works, Tomcat is misconfigured.

Upvotes: 3

Related Questions