How do I access WSL localhost [closed] - fastapi

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed last month.
Improve this question
I'm running a simple FastAPI application in WSL2 in a anaconda env, the code is very simple, as in the image
The app is running in localhost:127.0.0.1:8000 but I can't access it from Windows browser.
How do I do it, because later I want to test the API using swagger ui?
I used ip route or wsl hostname -i command to see the ip of WSL machine but none of them worked

Found the answer, turned out I still have a VPN running and it seems that it prevented me from accessing

Related

How to make sure that a process on Gunicorn3 runs continuously? [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 months ago.
Improve this question
I have a flask app deployed on a Ubuntu server. I use Nginx, and Gunicorn3. I know from this StackOverflow post that one of the correct ways to have the app running continuously on the server is to use something like:
gunicorn3 app:application --workers 3 --bind=127.0.0.1:1001 --daemon
But to be completely safe, since there are many other processes running on that server, I would like to find a way to check whether this process IS indeed running, and if it is NOT running (for whatever reasons) then to start it again.
In addition to that question, to make the app working at reboot, I use the following cronjob:
#reboot bash ~/restart_processes.sh
Where the .sh file executes the command line given above for starting Gunicorn3. Is this good practice or is there a better way to achieve the same result?
Thank you!
Kind regards,
I always use to deploy it in production with supervisorctl + nginx. Check this tutorial . You can simply start, restart or stop with a command.

The firebase CLI is not updating the project folders [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I'm developing a web app using the firebase CLI (firebase serve) but when I edit the code and reload my localhost the changes are not applied or it takes a couple of hours. It was applying the changed immediately before.
Is anyone having this sort of trouble or am I doing anything wrong?
I managed to fixed it by restarting the editor, the terminal and the browser... Still not sure what was going on there.

Can't ping Bonjour address can actually connect to it [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
There is something weird going on on my network.
I have a raspberry running Raspbian, with name "Myraspberry" and i am trying to find the IP address from my computer running windows with Bonjour installed on it.
if i ping Myraspberry.local i get nothing, but if i open Bonjour Browser i am actually getting the IP and name correctly. I can connect via SSH with putty using that name which makes me wonder that there is something fishy going on.
So what could be the cause of not being able to ping the device?
SO I had installed bonjour itself, by uninstalling it and installing itunes made it to work properly, might be a bug on the stand alone bonjour

filezilla not connecting to a specific server but connecting to other [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I am using filezilla as my ftp client and I was successfully using it. But now filezilla is not connecting with one of my server. But it connects to other servers.
So I was confused and I thought the server may down. But when I checked in downorisitjustme.com the server appears to be online. Don't know what is going on. Can you guys please help me on it?
Can you please check your FTP services status and try to stop firewall on your server, may be due to firewall you are unable to connect FTP server.
Actually it was a problem with my hosting side. They blocked my IP, may be because of a number of unsuccessful login attempt. And it got solved. Thanks guys.

Debian Wheezy Networking Spontaneously Shuts Down [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have just recently upgraded to Wheezy. Since I have updated my server will spontaneously kill networking. What logs could I look in to see if I can find the issue? I have looked in /var/log and there are no logs that look relevant that have been updated in the past few days. This server runs headless so re-enabling networking means turning the server off and on again as I can't ssh to it.
Any suggestions would be welcome.
Thanks
var/log/syslog should have something. You can run dmesg which may pick it up if it's a kernel module problem or something - to find the module name use lspci -v | grep -i ethernet and look for the module name a few lines later (it could be e1000 or something). Use the module name when grepping the dmesg output.

Resources