Hello, I set up on a virtual machine running Ubuntu 20.0.4 The Things Stack following the guide that provides the network and everything was fine.
Now I’m adding my gateway, which is a Mikrotik WAP LR8 kit, I configure it using Winbox.
The domain where i have hosted The things stack is on my IP from virtual machine and I’m able to access it from every device in my network.
Here is the winbox configuration
where TTN-PR is the address of my private server with The things stack.
I must specify that gateway and also a Lorawan device is working fine in public The Things Stack without any problem, the problem is when I use it in localhost.
And here is the gateway added on my localhost The things stack service, where you can see that it appears as disconnected.
I’m stuck here and I don’t know how to fix it
I would be glad to be helped as soon as possible.
To reinforce Jac’s comment above, there is no concept of server discovery.
You create a server that has an IP address, even if you access the console via ‘localhost’, on any IP enabled system, like a gateway, ‘localhost’ refers to itself, so you’ll have to enter the IP address of computer with your TTS.
As for the documentation, can you tell me which page you looked at please so I can verify.
Obviously I didn’t follow only this video I followed at the same time the official documentation.
I don’t think it should be a localhost installation issue.
I think there’s something missing in Mikrotik gateway, because is the only part of official documentation that makes me feel that’s uncompleted or insufficient
Obviously I knew this with my Crystal Ball - oh noes, its batteries have run out.
If you are running on a virtual machine that is also running Docker there are a few networking layers that have to be working just right - to clarify “able to access it from every device in my network”, does this mean that you can get the web console up on another machine?
Do you have a different gateway based on Packet Forwarder that you could try - preferably a Pi based one so you can see all the logs?
I have just known that I’m able to access console from PC where I’m running VM, but I’m not able to get web console on another machine.
Probably there is the problem, Must IP from VM be unreacheable because it isn’t in the same IP range?
No I don’t have any other different gateway.
Solution could be changing static IP from VM to another in my network?
This is the problem - the VM needs to be on the main network, not running as a NAT address sharing the host computers IP address or running as a private network between it and the host machine.
In VMware, which is what I use, it needs to be in Bridged Mode - that allows the VM ethernet card to appear to be another separate machine on the network, it picks up it’s IP address from the DHCP server and is accessible by all other computers on the same network.
If you are using VirtualBox, this mode is also called Bridged. If you are using HyperV or something else, you will have to read the docs as I only know those for desktop, there are other virtualisation systems but I’d need to know what you used and what the host OS is to be able to comment.
Sorry for spend i few days trying to solve it. I initialize a Virtual machine on VirtualBox with bridge mode in network config. And I set up The things Stack as in documentation, with the IP address I received with DNS from my router on local network, but I found that’s a problem following documentation because it says that is not possible to do it with a dns IP address. And that what I saw when i set up everything and I enter web with my IP and enter the things stack login web, when I write user and password i receive ia bad request message.
Because I guess deploying tts in my local network is what I need to have connection between my Mikrotik gateway and tts I set in virtual machine as private server.
But then I found a new trouble and it was having client id and client secret from packetbroker. Function that they installed in that example, which is no obligatory, but the didn’t show how to do it without it, so I follow that steps. Having client id and client secret i need to set up packetbroker and use command pbadmin, which after following installation from: https://packetbroker.net/getting-started/pb-clients/install/
I was not able to use it, receiving a cannot found pbadmin command from terminal.
So that’s my actual situation, a little bit lost.
Maybe there’s an installation way which makes it easier but I haven’t found it yet.