jimppan/GIMP-Tracker

[Setup/install issue] For others, the frontend shows map but not players/locations (works for host)

Closed this issue · 5 comments

Hi,

First of all, amazing plugin. You created this so quickly and it seems to work fantastically based on your live demo.

I went through the installation instructions to set it up locally (temporarily to test it out), and everything seems good on my end. When I go to localhost:3000, it works perfectly, I can even see others if they use http://myip:5000 in the config. I've port forwarded 3000 & 5000 so that shouldn't be an issue. When others go to http://myip:3000, they can see the map but not any players/locations, just the map. Any idea what could cause this? I may be able to figure it out with some more debugging but I figured I may as well ask in case you would instantly know what's happening here, and maybe save myself the trouble.

Fwiw I do webdev and have worked on some plugins as well so feel free to get technical in your explanations if need be. So confused at how they can see the map but not players.

The issue is probably that port 5000 is not open, so your users cannot connect to the backend, double check ports

I will get around to more testing tomorrow but it looks like you're right based on what I'm seeing from various "port checker" sites, despite being implemented properly on my internet admin panel. The same setup I have for port forwarding there worked for a MW2 server. Weird that they could still even see the map or get "Authorized" when connecting from the plugin panel. May just end up putting it on a server tomorrow since that should solve those kinds of issues. I'll let you know how things go, I appreciate the quick response.

edit: actually no they are both open I'm dumb, I checked them while I had no servers running. Still, I'll investigate more tomorrow.

I ended up just deploying it on heroku using your cloud installation guide, and that worked very smoothly. Well written setup guide, thanks for that. Still not too sure why it wasn't working locally (I've confirmed the ports are open correctly in case you missed the edit in my last comment). Could it be because in frontend/config.js I had http://myip:5000, does it need to have no port maybe? Anyways I'm good now personally, still just confused at why it wasn't working, but feel free to close.

No clue tbh, I know some people have had issues with this and im not sure why, for me, the local setup works perfectly fine and I can share it with other people.

But yea, in the local setup, I use my public IP as endpoints, and then add the port ontop of that. So just google "whats my ip" and add :5000 to frontend-endpoint and :3000 to backend-endpoint

Sounds like the setup I had, not too sure ¯\_(ツ)_/¯

It was probably something silly such as improperly closing the frontend before restarting it (after updating the backend url). At this point, with it working on heroku/github.io, I cba testing the local setup any further. I appreciate the help anyway, maybe this issue can help someone in the future.