Help with port forwarding/tunneling

Jmac22a year ago

I'm sorry for asking what is likely an obvious question, but I've been reading through troubleshooting and other forum posts and can't get my head around how the port for my tracker is meant to work.

I have 8082 open to access the web interface and that works. I know my public IP is static and port forwarding is possible. But I am having issues with the port my tracker needs to use to send data. It's a ST-901w, which uses the huabao protocol and should be sending to port 5015.

My question is... do I just open internal port 5015 to external port 5015? Or do I need to link external 5015 to internal 8082, so it goes to web as well? Right now with 5015>5015 the port checker says it's closed, but canyouseeme shows that the port is in fact open.

Am I missing something I need to change in my client? I have it installed as a container in Home Assistant, are there settings I need to tweak to have Traccar look at the 5015 port? Because to test things I installed the Android client and my client + server immediately connected with 5055>5055 port open.

Anton Tananaeva year ago

Port 5015 should be open by default.

Track-trace2a year ago

@Jmac22

First make sure Traccar is running and port 5015 is enabled in /conf/default.xml like this: <entry key='huabao.port'>5015</entry>
By default it should already be that way.

Secondly, Make sure your internet router has opened the port 5015 and forward it to you traccar server local ip to port 5015

Then there is as easy way to check first if the port is open...
https://portchecker.co/

Fill in your home internet ip (not your local lan ip) and check if port 5015 is open.

If not still something is blocking the port in your local lan (that might be your computer/server firewall aslo)

If it is open and you pointed your tracker to your internet ip and port 5015 then you should see data in traccar log.

If not the device it not sending data to the correct ip /port

Let me know how it goes..

Anton Tananaeva year ago

We have our own port checker:

https://www.traccar.org/port-check/

Jmac22a year ago

Thanks so much for the help! It turns out most of the entry keys are disabled by default in Home Assistants Traccar add-on, so I added it to conf/default.xml. Using https://www.traccar.org/port-check/ my port now appears open, where it didn't before!

It looks like the online listing was wrong and it might have a different protocol (track is ST-902L, not W.) Might need H02. Either way I think I can figure it out from here.

Jmac22a year ago

Updating in case someone finds this post when searching ST-902L. It does use huabao protocol, not H02. My device just needed a 0 in front of its ID to get it working.