Chrome Extension - IP and Port Valid Check - google-chrome

I am trying to make an extension and I want to provide input for an IP and check the IP for a specific Port to make sure it's open/closed (My Raspberry Pi). How would one go about making the request to do so?

You are not able to as an Extention.

Related

How to view a dash app created on a Ubuntu server without GUI (a VM instance in gcp)

I have an R script that uses Plotly Dash to create a web page. I am running the script on a VM instance in GCP which is a Ubuntu server without GUI. When the script is executed, it says,
start 127.0.0.1:8050
My question is how to access this web page on a browser from anywhere. Since the VM doesnt have a gui/browser I cannot even test my web page..
Anyone could explain what I am missing here or any way to deploy my web page and access from anywhere?
I am unsure how your application works, but that ending line shows that the server is running on localhost and on which port is it serving. So you may want to access from an external browser with the instance's ip address: like http:// xx.xxx.xx.xx:8050 and let's see if it works. Otherwise you may need to set up a Remote Desktop Setup through Chrome to enable a GUI interface on the VM.
Also remember to make sure that traffic is allowed on that port 8050 checking /creating the firewall rules
I encountered the same problem. You need to change the IP address on which the dash server is running to the internal IP address of your gcp VM instance. It usually starts with 10.xxx.x.x. You can find this internal address in the 'IP address' tab in the VPC networks section on the google cloud console. So do this:
app.run_server(host='10.xxx.x.x', port='8050')
Open a browser and browse to http://externalip:8050. Make sure you have your firewall rules set up correctly.
You should now be able to see the dash app.

How to make polymer serve be accessible on the internet or Lan, instead localhost?

I have a Polymer 2 component that I serve locally running
polymer serve
I get the following back:
Files in this directory are available under the following URLs
applications: http://127.0.0.1:8081
reusable components: http://127.0.0.1:8081/components/component-name/
That works very well; as expected I am able to open a local URL and view the component on Chrome.
I need to test this component on an Android Device, the best way it would be (please correct me if I´m wrong) to make this polymer component available on the internet or my local network.
Any suggestion is appreciated. thanks.
When you use the serve command you have some additional parameters. With one of them (-H) you can set the IP you want to be used. So instead of launching the server for your loopback (localhost) IP (the default), you can use your LAN IP (I guess most likely something like 192.169.x.x), or even:
polymer serve -H 0.0.0.0
"0.0.0.0" basically meaning "all IPv4 addresses on the local machine". So now you only need to know your IP in the network you are and that Android device is connected also. So if both of them are connected to the same router you should be able to open in your phone an URL like http://192.168.x.x:8081

Need to develop a Web page to run on my mobile

I have created an HTML page on my PC and I need to run it in my mobile for testing. I have deployed it in TOMCAT and I run it using http://IP ADDRESS (192.something.something.something):port/index.html
I can't access it outside my home network. I want to know do I need to add something to make it run outside my home network on other mobile phones..? I am confused.. Everything is new for me. Will appreciate any help. Thanks
You may need to check the config settings from your internet service provider to make sure that the Port is open and you are not blocking outside connections via the port or IP address.
Go to your browser and type in your IP address, this should take you to your router settings and check the settings there.
Good luck!

How to reference an anchor tag of local server address

Is there a way to reference an anchor tag through a local host address. like 0.0.0.0:3000 for rails or 0.0.0.0:9292 for a rack app. With rails you could always use pow to do the hosting. it will humanize the url to appname.dev/#thing. which will work. in my case i am trying to do this in a rack app.
like 0.0.0.0:9292#hello or 0.0.0.0:9292/#hello
It keeps taking me to a google search.
The reason i am asking this question is because i would like to test a fancy-box that i am trying to open from the URL using an anchor. i don't want to be testing this in production.
things i have tried -> on Chrome, Firefox and Safari
http://0.0.0.0:9292/#speaker1
http://0.0.0.0:9292#speaker1
0.0.0.0:9292/#speaker1
0.0.0.0:9292#speaker1
0.0.0.0 is not a valid ip adress. It's reference to the network containing all ip addresses. So I'd recommend trying
http://127.0.0.1:3000/#hello
to access localhost
isn't localhost 127.0.0.1?
From Wikipedia
In the Internet Protocol version 4 the address 0.0.0.0 is a
non-routable meta-address used to designate an invalid, unknown or non
applicable target.
If you are using hosts file to redirect 127.0.0.1 to that ip, try using a valid ip address!
and the other thing you should do is use 127.0.0.1/#hello instead of 127.0.0.1#hello to avoid confusions!

jekyll serve is not serving in localhost and showing other page

I have install jekyll and have used it in my blog creation.
But when i type the command
jekyll serve
It show an address 0.0.0.0:4000
Which is not local host.
Also,The address shows a blank page instead of my blog.
Help me to solve this Problem.
jekyll serve always shows :
Server address: http://0.0.0.0:4000
It doesn't mean that the website will be displayed on this IP address : it isn't an IP address! It means "server, listen on every available network interface". 127.0.0.1 is a network interface, so the server should listen to it.
That is to say localhost:4000 (or 127.0.0.1) should display your website. If not, the problem isn't related to this strange 0.0.0.0:4000.
With using 0.0.0.0 you able to access it from another device using your machine IP address in the same network.