Public IP can't be reached - ip

I'm trying to open my Public IP but it always showing me that This site can’t be reached
refused to connect.
anyone know why this happen and what should I do

Related

Why is my port forwarding not working?

I installed XAMPP on my Windows machine and I want to show my work to friends. I set up Virtual server on router(Huawei B315) and when I send my public IP to friends or try to open on my computer it doesn't work. It shows me "This site can’t be reached" message. I disabled firewall on both computer and router but it is still the same. Pinging my public IP address is also not working.

How to determine the Public IP address for a Tinc VPN to work?

Me and my 3 friends want to connect our computers through a VPN with each other. We thought of using Tinc for our purpose. While I understood most of the part of setting up but what I'm unable to get is the Public IP of my computer. Tinc requires the Public IP of at least one of the hosts for it to initiate connection. I tried going on the internet to find my Public IP but different websites are giving me different results. What should I put in the configuration file for my Public IP?
EDIT
Specifically we have a Raspberry Pi which is with me currently. We want everyone of us to be able to access the device. I installed Tinc on the Pi and then I don't know what to do for the Public IP. I'm using SSH to control the Raspberry Pi. So please tell me how to find the public address of the Pi through SSH.
You can find your Public IP address by using one of these methods.
Open Google and type "What's my IP". Google displays your Public IP address in the result.
Go to What Is My IP to find out your Public IP.
Since you're using the command line, I would recommend this: execute curl ipinfo.io/ip command and your Public IP will be displayed.
If your router does not reboot, you public IP is not supposed to change. So, if you go on a website like this one, you should have your public IP displayed.

Pinging other random public IP gives no result

I try to ping some random IPs, But most of them fail. I got a dynamic public IP by using Huawei mobile modem. But Whenever I try to ping other public ip I am not getting any result..
I can able to ping 8.8.8.8 or other public web servers, But not getting result for random public ips
The first thing is that a ping is ICMP Traffic that can be blocked by firewalls. Some admins block such traffic for security reasons.
The other thing is that a host could be offline.

Why is my IP adress different when displayed by different methods

I am new to all this, so I am sorry if the question is stupid. I am learning about networking and I want to find out IP address of my own computer.
When I try to display it through ipconfig, my router's configuration page and by simply googling, I see different IP-address
Thank you in advance for help
in ip-config it starts with 10. ...
in router's conf page 192.168.1. ...
when googling 213. ...
ipconfig will give you the address of your machine. This will be some private IP address. Your router will have two IP address - One public and one private. All machines in your local network (house probably) will talk to the router via its private address, while everything out in the Internet talk to your router via its public address.
So, ipconfig provides the address of your computer, your router's config page shows its private address, and Google will show you your router's public address.
Some terms to look up: Look up Public vs Private IP addresses and how NAT works and this will all make more sense.

How to make the ip of my computer public so that devices outside the same network can access webservice in that particular ip

i have an android application using webservice which is working fine from inside a network. i mean, if both mobile and computer are connected to the same network, i can run the app perfectly, but if i change network of any one of it to another network then, 'cannot establish connection to server' error is shown.
What i want is to get an ip from which i can acess the app from any network
this is how my connection code in the android application looks like
mWebview .loadUrl("http://192.193.194.195/Application/startpage.php");
please give me step by step instructions, i searched for it a lot, but i couldnt find a good answer for my level 0 networking knowledge :)
Thanks
You have to host the server on a public IP address where every network can see the server.
Then you have to use the external/internet ip addres of your router. Find out with http://whatismyip.com Then on your router forward port 80 to your pc with ip 192.193.194.195.

Resources