Google Cloud Platform: External IP Address isn't Accessible from Outside









up vote
0
down vote

favorite












I have recently started working with "Google Cloud Platform". I basically want to use it for my data science project. I have successfully setup Project, VM Instance, Firewall Rules etc.



enter image description here



I have installed Jupyter Notebook which is running on port 8888 and I have installed Apache tomcat server. Now, I want to access these via static external IP address of my VM but these aren't accessible when I mention static external IP address.



I have verified external path,, project HTTP(s) traffic enabled, firewall rules for Apache tomcat and Jupyter Notebook added and Ping to that external IP address is also working. In the image below, all the firewall rules for jupyter notebook and tomcat can be seen:



enter image description here



I tried to access by the following ways:



  • https://static-external-ip/

  • https://static-external-ip:8080/

  • https://static-external-ip:888/

Any help in this regard will be a great favor. Happy Learning!



Update: November 10th, 2018
I can access the servers using the following URLs:




  • https://8080-dot-4783318-dot-devshell.appspot.com/ (Apache Tomcat)


  • https://8888-dot-4783318-dot-devshell.appspot.com/ (Jupyter Notebook)

First these aren't accessible publicly (externally) and secondly issue while accessing the servers with static external IPs is still there.










share|improve this question























  • Did you open port 8888 in your firewall rules explicitly? HTTP(s) and Tomcat / Jupyter are all HTTP servers and so probably all run on port 80 (or 443 for HTTP(s)) by default, so using custom port 8888 is probably your problem. You could either open up that port and access it at http://static-external-ip:8888, or you could restart the notebook on port 80 and then access it at http://static-external-ip.
    – Dan
    Nov 9 at 23:36










  • @Dan thanks for your reply. Yes, as I mentioned in my question, I have already configured firewall rules and I have added picture as well in the actual question for you reference. And major issue is that tomcat server is also not accessible which is already running on the default port.
    – Bilal Ahmed Yaseen
    Nov 10 at 7:26














up vote
0
down vote

favorite












I have recently started working with "Google Cloud Platform". I basically want to use it for my data science project. I have successfully setup Project, VM Instance, Firewall Rules etc.



enter image description here



I have installed Jupyter Notebook which is running on port 8888 and I have installed Apache tomcat server. Now, I want to access these via static external IP address of my VM but these aren't accessible when I mention static external IP address.



I have verified external path,, project HTTP(s) traffic enabled, firewall rules for Apache tomcat and Jupyter Notebook added and Ping to that external IP address is also working. In the image below, all the firewall rules for jupyter notebook and tomcat can be seen:



enter image description here



I tried to access by the following ways:



  • https://static-external-ip/

  • https://static-external-ip:8080/

  • https://static-external-ip:888/

Any help in this regard will be a great favor. Happy Learning!



Update: November 10th, 2018
I can access the servers using the following URLs:




  • https://8080-dot-4783318-dot-devshell.appspot.com/ (Apache Tomcat)


  • https://8888-dot-4783318-dot-devshell.appspot.com/ (Jupyter Notebook)

First these aren't accessible publicly (externally) and secondly issue while accessing the servers with static external IPs is still there.










share|improve this question























  • Did you open port 8888 in your firewall rules explicitly? HTTP(s) and Tomcat / Jupyter are all HTTP servers and so probably all run on port 80 (or 443 for HTTP(s)) by default, so using custom port 8888 is probably your problem. You could either open up that port and access it at http://static-external-ip:8888, or you could restart the notebook on port 80 and then access it at http://static-external-ip.
    – Dan
    Nov 9 at 23:36










  • @Dan thanks for your reply. Yes, as I mentioned in my question, I have already configured firewall rules and I have added picture as well in the actual question for you reference. And major issue is that tomcat server is also not accessible which is already running on the default port.
    – Bilal Ahmed Yaseen
    Nov 10 at 7:26












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have recently started working with "Google Cloud Platform". I basically want to use it for my data science project. I have successfully setup Project, VM Instance, Firewall Rules etc.



enter image description here



I have installed Jupyter Notebook which is running on port 8888 and I have installed Apache tomcat server. Now, I want to access these via static external IP address of my VM but these aren't accessible when I mention static external IP address.



I have verified external path,, project HTTP(s) traffic enabled, firewall rules for Apache tomcat and Jupyter Notebook added and Ping to that external IP address is also working. In the image below, all the firewall rules for jupyter notebook and tomcat can be seen:



enter image description here



I tried to access by the following ways:



  • https://static-external-ip/

  • https://static-external-ip:8080/

  • https://static-external-ip:888/

Any help in this regard will be a great favor. Happy Learning!



Update: November 10th, 2018
I can access the servers using the following URLs:




  • https://8080-dot-4783318-dot-devshell.appspot.com/ (Apache Tomcat)


  • https://8888-dot-4783318-dot-devshell.appspot.com/ (Jupyter Notebook)

First these aren't accessible publicly (externally) and secondly issue while accessing the servers with static external IPs is still there.










share|improve this question















I have recently started working with "Google Cloud Platform". I basically want to use it for my data science project. I have successfully setup Project, VM Instance, Firewall Rules etc.



enter image description here



I have installed Jupyter Notebook which is running on port 8888 and I have installed Apache tomcat server. Now, I want to access these via static external IP address of my VM but these aren't accessible when I mention static external IP address.



I have verified external path,, project HTTP(s) traffic enabled, firewall rules for Apache tomcat and Jupyter Notebook added and Ping to that external IP address is also working. In the image below, all the firewall rules for jupyter notebook and tomcat can be seen:



enter image description here



I tried to access by the following ways:



  • https://static-external-ip/

  • https://static-external-ip:8080/

  • https://static-external-ip:888/

Any help in this regard will be a great favor. Happy Learning!



Update: November 10th, 2018
I can access the servers using the following URLs:




  • https://8080-dot-4783318-dot-devshell.appspot.com/ (Apache Tomcat)


  • https://8888-dot-4783318-dot-devshell.appspot.com/ (Jupyter Notebook)

First these aren't accessible publicly (externally) and secondly issue while accessing the servers with static external IPs is still there.







tomcat google-cloud-platform jupyter-notebook google-compute-engine vpc






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 10 at 9:32

























asked Nov 9 at 21:29









Bilal Ahmed Yaseen

5231422




5231422











  • Did you open port 8888 in your firewall rules explicitly? HTTP(s) and Tomcat / Jupyter are all HTTP servers and so probably all run on port 80 (or 443 for HTTP(s)) by default, so using custom port 8888 is probably your problem. You could either open up that port and access it at http://static-external-ip:8888, or you could restart the notebook on port 80 and then access it at http://static-external-ip.
    – Dan
    Nov 9 at 23:36










  • @Dan thanks for your reply. Yes, as I mentioned in my question, I have already configured firewall rules and I have added picture as well in the actual question for you reference. And major issue is that tomcat server is also not accessible which is already running on the default port.
    – Bilal Ahmed Yaseen
    Nov 10 at 7:26
















  • Did you open port 8888 in your firewall rules explicitly? HTTP(s) and Tomcat / Jupyter are all HTTP servers and so probably all run on port 80 (or 443 for HTTP(s)) by default, so using custom port 8888 is probably your problem. You could either open up that port and access it at http://static-external-ip:8888, or you could restart the notebook on port 80 and then access it at http://static-external-ip.
    – Dan
    Nov 9 at 23:36










  • @Dan thanks for your reply. Yes, as I mentioned in my question, I have already configured firewall rules and I have added picture as well in the actual question for you reference. And major issue is that tomcat server is also not accessible which is already running on the default port.
    – Bilal Ahmed Yaseen
    Nov 10 at 7:26















Did you open port 8888 in your firewall rules explicitly? HTTP(s) and Tomcat / Jupyter are all HTTP servers and so probably all run on port 80 (or 443 for HTTP(s)) by default, so using custom port 8888 is probably your problem. You could either open up that port and access it at http://static-external-ip:8888, or you could restart the notebook on port 80 and then access it at http://static-external-ip.
– Dan
Nov 9 at 23:36




Did you open port 8888 in your firewall rules explicitly? HTTP(s) and Tomcat / Jupyter are all HTTP servers and so probably all run on port 80 (or 443 for HTTP(s)) by default, so using custom port 8888 is probably your problem. You could either open up that port and access it at http://static-external-ip:8888, or you could restart the notebook on port 80 and then access it at http://static-external-ip.
– Dan
Nov 9 at 23:36












@Dan thanks for your reply. Yes, as I mentioned in my question, I have already configured firewall rules and I have added picture as well in the actual question for you reference. And major issue is that tomcat server is also not accessible which is already running on the default port.
– Bilal Ahmed Yaseen
Nov 10 at 7:26




@Dan thanks for your reply. Yes, as I mentioned in my question, I have already configured firewall rules and I have added picture as well in the actual question for you reference. And major issue is that tomcat server is also not accessible which is already running on the default port.
– Bilal Ahmed Yaseen
Nov 10 at 7:26












1 Answer
1






active

oldest

votes

















up vote
0
down vote













You seem to have done all steps for exposing a service to the outside, except I am guessing for one thing - Is Jupyter listening on loopback interface? Per Jupyter's documentation -



By default, a notebook server runs locally at 127.0.0.1:8888 and is accessible only from localhost. You may access the notebook server from the browser using http://127.0.0.1:8888.



The documentation provides information on how to make it accessible to the outside world. In short, to access the service has to bind to on all interfaces (ips).






share|improve this answer




















  • Thanks @Daniel-t for your response. But I already added these option while configuring it. I added these two lines regarding this: 1) Notebook.ip = "/*" and 2) notebook.allow_origin = "/*". P.S: added slash intentionally as alone esterik symbol was being disappeared.
    – Bilal Ahmed Yaseen
    Nov 10 at 14:01











  • So, I don't think that issue is with these configurations as I mentioned in my question as well that I tried same with simple Apache tomcat server as well and observed the same error. So, not being able to understand that what got missed :) I'm really screwing my head on this...
    – Bilal Ahmed Yaseen
    Nov 10 at 14:02










  • Can you post the output of this command - netstat -tan |grep 8888 ?
    – Daniel t.
    Nov 10 at 14:17










  • I don't get any output after running this command. Neither error nor any response.
    – Bilal Ahmed Yaseen
    Nov 10 at 14:19






  • 1




    After reading the chat session it appears that you were running your installation in Cloud Shell. As such your connection test to the VM were not successful. I would recommend posting this type of questions in ServerFault as StackOverflow is for Q&A for professional and enthusiast programmers.
    – Mohibul Mahmud
    Nov 16 at 1:34










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53233495%2fgoogle-cloud-platform-external-ip-address-isnt-accessible-from-outside%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













You seem to have done all steps for exposing a service to the outside, except I am guessing for one thing - Is Jupyter listening on loopback interface? Per Jupyter's documentation -



By default, a notebook server runs locally at 127.0.0.1:8888 and is accessible only from localhost. You may access the notebook server from the browser using http://127.0.0.1:8888.



The documentation provides information on how to make it accessible to the outside world. In short, to access the service has to bind to on all interfaces (ips).






share|improve this answer




















  • Thanks @Daniel-t for your response. But I already added these option while configuring it. I added these two lines regarding this: 1) Notebook.ip = "/*" and 2) notebook.allow_origin = "/*". P.S: added slash intentionally as alone esterik symbol was being disappeared.
    – Bilal Ahmed Yaseen
    Nov 10 at 14:01











  • So, I don't think that issue is with these configurations as I mentioned in my question as well that I tried same with simple Apache tomcat server as well and observed the same error. So, not being able to understand that what got missed :) I'm really screwing my head on this...
    – Bilal Ahmed Yaseen
    Nov 10 at 14:02










  • Can you post the output of this command - netstat -tan |grep 8888 ?
    – Daniel t.
    Nov 10 at 14:17










  • I don't get any output after running this command. Neither error nor any response.
    – Bilal Ahmed Yaseen
    Nov 10 at 14:19






  • 1




    After reading the chat session it appears that you were running your installation in Cloud Shell. As such your connection test to the VM were not successful. I would recommend posting this type of questions in ServerFault as StackOverflow is for Q&A for professional and enthusiast programmers.
    – Mohibul Mahmud
    Nov 16 at 1:34














up vote
0
down vote













You seem to have done all steps for exposing a service to the outside, except I am guessing for one thing - Is Jupyter listening on loopback interface? Per Jupyter's documentation -



By default, a notebook server runs locally at 127.0.0.1:8888 and is accessible only from localhost. You may access the notebook server from the browser using http://127.0.0.1:8888.



The documentation provides information on how to make it accessible to the outside world. In short, to access the service has to bind to on all interfaces (ips).






share|improve this answer




















  • Thanks @Daniel-t for your response. But I already added these option while configuring it. I added these two lines regarding this: 1) Notebook.ip = "/*" and 2) notebook.allow_origin = "/*". P.S: added slash intentionally as alone esterik symbol was being disappeared.
    – Bilal Ahmed Yaseen
    Nov 10 at 14:01











  • So, I don't think that issue is with these configurations as I mentioned in my question as well that I tried same with simple Apache tomcat server as well and observed the same error. So, not being able to understand that what got missed :) I'm really screwing my head on this...
    – Bilal Ahmed Yaseen
    Nov 10 at 14:02










  • Can you post the output of this command - netstat -tan |grep 8888 ?
    – Daniel t.
    Nov 10 at 14:17










  • I don't get any output after running this command. Neither error nor any response.
    – Bilal Ahmed Yaseen
    Nov 10 at 14:19






  • 1




    After reading the chat session it appears that you were running your installation in Cloud Shell. As such your connection test to the VM were not successful. I would recommend posting this type of questions in ServerFault as StackOverflow is for Q&A for professional and enthusiast programmers.
    – Mohibul Mahmud
    Nov 16 at 1:34












up vote
0
down vote










up vote
0
down vote









You seem to have done all steps for exposing a service to the outside, except I am guessing for one thing - Is Jupyter listening on loopback interface? Per Jupyter's documentation -



By default, a notebook server runs locally at 127.0.0.1:8888 and is accessible only from localhost. You may access the notebook server from the browser using http://127.0.0.1:8888.



The documentation provides information on how to make it accessible to the outside world. In short, to access the service has to bind to on all interfaces (ips).






share|improve this answer












You seem to have done all steps for exposing a service to the outside, except I am guessing for one thing - Is Jupyter listening on loopback interface? Per Jupyter's documentation -



By default, a notebook server runs locally at 127.0.0.1:8888 and is accessible only from localhost. You may access the notebook server from the browser using http://127.0.0.1:8888.



The documentation provides information on how to make it accessible to the outside world. In short, to access the service has to bind to on all interfaces (ips).







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 10 at 13:51









Daniel t.

588612




588612











  • Thanks @Daniel-t for your response. But I already added these option while configuring it. I added these two lines regarding this: 1) Notebook.ip = "/*" and 2) notebook.allow_origin = "/*". P.S: added slash intentionally as alone esterik symbol was being disappeared.
    – Bilal Ahmed Yaseen
    Nov 10 at 14:01











  • So, I don't think that issue is with these configurations as I mentioned in my question as well that I tried same with simple Apache tomcat server as well and observed the same error. So, not being able to understand that what got missed :) I'm really screwing my head on this...
    – Bilal Ahmed Yaseen
    Nov 10 at 14:02










  • Can you post the output of this command - netstat -tan |grep 8888 ?
    – Daniel t.
    Nov 10 at 14:17










  • I don't get any output after running this command. Neither error nor any response.
    – Bilal Ahmed Yaseen
    Nov 10 at 14:19






  • 1




    After reading the chat session it appears that you were running your installation in Cloud Shell. As such your connection test to the VM were not successful. I would recommend posting this type of questions in ServerFault as StackOverflow is for Q&A for professional and enthusiast programmers.
    – Mohibul Mahmud
    Nov 16 at 1:34
















  • Thanks @Daniel-t for your response. But I already added these option while configuring it. I added these two lines regarding this: 1) Notebook.ip = "/*" and 2) notebook.allow_origin = "/*". P.S: added slash intentionally as alone esterik symbol was being disappeared.
    – Bilal Ahmed Yaseen
    Nov 10 at 14:01











  • So, I don't think that issue is with these configurations as I mentioned in my question as well that I tried same with simple Apache tomcat server as well and observed the same error. So, not being able to understand that what got missed :) I'm really screwing my head on this...
    – Bilal Ahmed Yaseen
    Nov 10 at 14:02










  • Can you post the output of this command - netstat -tan |grep 8888 ?
    – Daniel t.
    Nov 10 at 14:17










  • I don't get any output after running this command. Neither error nor any response.
    – Bilal Ahmed Yaseen
    Nov 10 at 14:19






  • 1




    After reading the chat session it appears that you were running your installation in Cloud Shell. As such your connection test to the VM were not successful. I would recommend posting this type of questions in ServerFault as StackOverflow is for Q&A for professional and enthusiast programmers.
    – Mohibul Mahmud
    Nov 16 at 1:34















Thanks @Daniel-t for your response. But I already added these option while configuring it. I added these two lines regarding this: 1) Notebook.ip = "/*" and 2) notebook.allow_origin = "/*". P.S: added slash intentionally as alone esterik symbol was being disappeared.
– Bilal Ahmed Yaseen
Nov 10 at 14:01





Thanks @Daniel-t for your response. But I already added these option while configuring it. I added these two lines regarding this: 1) Notebook.ip = "/*" and 2) notebook.allow_origin = "/*". P.S: added slash intentionally as alone esterik symbol was being disappeared.
– Bilal Ahmed Yaseen
Nov 10 at 14:01













So, I don't think that issue is with these configurations as I mentioned in my question as well that I tried same with simple Apache tomcat server as well and observed the same error. So, not being able to understand that what got missed :) I'm really screwing my head on this...
– Bilal Ahmed Yaseen
Nov 10 at 14:02




So, I don't think that issue is with these configurations as I mentioned in my question as well that I tried same with simple Apache tomcat server as well and observed the same error. So, not being able to understand that what got missed :) I'm really screwing my head on this...
– Bilal Ahmed Yaseen
Nov 10 at 14:02












Can you post the output of this command - netstat -tan |grep 8888 ?
– Daniel t.
Nov 10 at 14:17




Can you post the output of this command - netstat -tan |grep 8888 ?
– Daniel t.
Nov 10 at 14:17












I don't get any output after running this command. Neither error nor any response.
– Bilal Ahmed Yaseen
Nov 10 at 14:19




I don't get any output after running this command. Neither error nor any response.
– Bilal Ahmed Yaseen
Nov 10 at 14:19




1




1




After reading the chat session it appears that you were running your installation in Cloud Shell. As such your connection test to the VM were not successful. I would recommend posting this type of questions in ServerFault as StackOverflow is for Q&A for professional and enthusiast programmers.
– Mohibul Mahmud
Nov 16 at 1:34




After reading the chat session it appears that you were running your installation in Cloud Shell. As such your connection test to the VM were not successful. I would recommend posting this type of questions in ServerFault as StackOverflow is for Q&A for professional and enthusiast programmers.
– Mohibul Mahmud
Nov 16 at 1:34

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53233495%2fgoogle-cloud-platform-external-ip-address-isnt-accessible-from-outside%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Use pre created SQLite database for Android project in kotlin

Darth Vader #20

Ondo