Comments (6)
Why are you trying to navigate to it at 192.168.1.99:3000? That's why its not working, axios can't find the backend server because they run at localhost, not 192.168....
Follow the instructions, navigate to localhost:3000 which is where the FE lives and expects the BE which should be running at localhost:5000.
from fireshare.
Follow the instructions
Please read again, especially points 1 and 3.
Why are you trying to navigate to it at 192.168.1.99:3000?
Because BOTH the backend and the frontend are hosted at that server. I'm running BOTH on my homeserver, which is 192.168.1.99. Both are running there, on the same device, on localhost, on 3000 and 5000.
because they run at localhost, not 192.168....
They're both running on localhost lol. It's not a case where the backend is running on a different device and frontend on different.
from fireshare.
Okay, what you are doing is running it in development mode. Which does not work with how you are trying to run it.
That is why the instructions specifically say to navigate to localhost:3000. It doesn't matter where you are running the BE or the FE if you are running it in development like you are. The FE and BE have to be accessed from the same machine they are running on via localhost.
If you run it on some other computer even if its on the same network, it will not work. It sounds to me like you are trying to run it in development to use it rather than develop on it since you do not have experience with Docker.
from fireshare.
Okay, what you are doing is running it in development mode
Yes, I am aware.
It sounds to me like you are trying to run it in development to use it rather than develop on it since you do not have experience with Docker.
I have a docker instance running already, but I needed some other stuff which I was going to see if I could add. I was going to tinker with it, play around, see what I could do etc. Making assumptions about someone's ability is weird and I don't think called for.
If you run it on some other computer even if its on the same network, it will not work.
Interesting.
If I run x on :5000 that has an IP of 1.2.3.4 and y on :3000 that has an ip of 1.2.3.4 (i.e., the same machines), are they not both able to find each other using "localhost:port"? If so, if I access one of them via an outside machine, should it generally not be able to still find that other localhost instance that is on the same machine it is running on?
from fireshare.
If I run x on :5000 that has an IP of 1.2.3.4 and y on :3000 that has an ip of 1.2.3.4, are they not both unable to find each other using "localhost"?
Yes, because regardless of where the development servers are running, the web application is being loaded and run inside your browser. If you are on a different machine and accessing the web application it will generate an incorrect URL for the backend.
The web app will look at your address: 192.168.x.x:3000 and see that its not localhost and assume since its not localhost it must be running in a production environment. So it will try to access the backend at 192.168.x.x/api/ which doesn't work because it needs to know the port.
If you were running it at localhost, the web app would see that its running at localhost and try to access the backend at localhost:5000.
So the only way to use the application at an address like 192.168.x.x is if you run it in production mode where it's using nginx to proxy the traffic to the BE service running at localhost:5000.
You could try to run it with nginx, see ./run_local_nginx.sh, but that's only experimental and I can't guarantee that will work. I have it there for a very specific test I was doing.
from fireshare.
Interesting. Thank you. I will try that.
from fireshare.
Related Issues (20)
- Unknown Error HOT 6
- Feature request - Customizable Shareable URLS HOT 1
- share link w/ timestamp in admin ui does not work HOT 2
- unable to login HOT 3
- Video's not processing HOT 10
- Discord Embeds not working HOT 1
- [Suggestion] Disable public feed entirely HOT 1
- [Question] Search LDAP without memberOf enabled HOT 4
- Is there a known workaround for setting Max Upload Size? HOT 1
- 502 Bad Gateway HOT 1
- [FEATURE REQUEST] Add support for CAPTCHA's or a ratelimit on the login page HOT 1
- Can someone write some kind of example on how to setup a reverse proxy for this thing? HOT 1
- Discord integration broken HOT 17
- Suggestion - support chunked uploading HOT 1
- After transcoding videos to h265 by replacing the original video file, they can't be reached again through website HOT 2
- Upload card not shown on first time load HOT 2
- Scans failing can cause a soft-lock HOT 3
- "TypeError: Only timezones from the pytz library are supported" after upgrading from version v1.2.8 to v1.2.9 via Docker HOT 5
- Unknown errors when running on Mac OS 13.2.1 HOT 11
- Support photos and audio HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fireshare.