Skip to content

bam bam bhole! how, endpoint accessing on mobile browser i.e chrome LOCALLY using IP Address and PORT beacuse simple *Python* python - m http.server accessible using having port 8000 accessible on mobile After Setting windows defender Inbound rule And allow app and feature defender setting but How FastAPI to access endpoint on mobile browser #11537

Closed Answered by Karan09542
Karan09542 asked this question in Questions
Discussion options

You must be logged in to vote

bam bam bhole! thankyou it work after setting host 0.0.0.0 and it run on mobile browser
but before it, it run on HOST 127.0.0.1 and PORT 8000 then why it not work

but a newThing is happenning that Endpoint is being accessing on mobile browser, mean fastapi api run on mobile BUT
when fetch in javascript only host 127.0.0.1 work rather then 0.0.0.0 and fixed 127 1st segment then changes 3 segment of dot number it also work i.e 127.10.0.1, 127.12.0.5, 127.0.10.5 so on

But running html, css , and js file on liveserver and access on mobile browser using computer IP Address and PORT 5501(live server host port) frontend work but FastAPI endpoint fetch not work using js

Question Solution is solved:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Karan09542
Comment options

Answer selected by Karan09542
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem
2 participants