Hi ,
Welcome Everyone
Here we take a example , in which we try to serve a simple program of any kind from local address to public ip..
But i faces some issue..
Ok Let start
os - ubuntu / any
Suppose we use php to serve a php file ...
Then , i assured you know this comman things to server by php.
php -S localhost:8080
php -S 127.0.0.1:8080
But But their is a problem
What? Do you want to listen
When you use (localhost/127.0.0.1) as address then php or any other app will start serving but the serve is limited to localhost ip it does not show over public ip...
But when we uses
php -S 0.0.0.0:8080
php -S 10.0.0.4:8080
Then it will serve not only localhost also visible through public it ..
Can you please fix it and what the reason