The web address like localhost and 127.0.0.1 only serve locally not serve over public Ip - Microsoft Q&A (2024)

You give me a Good reason for this i Appreciate it

But your reason in only valid over php...
In php , they say to use 0.0.0.0 for public and 127.0.0.1 for local
Ya i know that it true

But their is something

I said that when any program ( like php etc) run over localhost address then it is not visible over public ip..

So how we can visible this over public ip???
if i need ..

Lets take another example with python
May you know about ? You know

Create simple app.py

we user import flash and simple hello world , and create something

Mean when i visited over this file on hosted address it return me " Hello world"

Then we deploy this application with simple command

flash run -p 8080

It will run this program over locahost:8080

We test it works on not > curl localhost:8080
so it return > hello world and some errors ( debug enable )

so we try to access same program over our public ip

visited or curl over public ip and the port
It will not serve their ...

So what how i serve over their ,
Because in PhP you easily say about php function not a matter of azure
Ok
Then what is this !

Basically i know the answer and i also know how to serve over public ip
But i want to know from you???

Please reply it ??

The web address like localhost and 127.0.0.1 only serve locally not serve over public Ip - Microsoft Q&A (2024)
Top Articles
Latest Posts
Article information

Author: Arielle Torp

Last Updated:

Views: 6044

Rating: 4 / 5 (41 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Arielle Torp

Birthday: 1997-09-20

Address: 87313 Erdman Vista, North Dustinborough, WA 37563

Phone: +97216742823598

Job: Central Technology Officer

Hobby: Taekwondo, Macrame, Foreign language learning, Kite flying, Cooking, Skiing, Computer programming

Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.