i am currently working on a small script that should allow me to scan an existing ioFog network.
Via “iofogctl” I can actually get all the necessary information. However, I do encounter a problem.
The IP addresses displayed do not correspond to the “IP addresses” of the host devices. (Intentionally or not)
Example: Agent “knight” runs on a Raspi with the IP address :
"iofogctl get all" // "iofogctl describe agent knight" give me this value:
@mehdi then gave me the idea to use the ECN Viewer.
Things are getting a little crazy around here.
A quick look at my setup:
- I am on a Windows computer and use iofogctl version: 2.0.0-rc2
- I’m connecting through it (iofogctl connect …)
- Now I am in the network: Linux laptop (controller) and a Raspberry Pi (agent) (all up to date versions)
4.Still getting :
host: 18.104.22.168 and not 192.168.0.3
- Want to try out :
First problem: It opens my browser with the IP address of my Linux laptop (as it should be). That’s where the controller is sitting. BUT unfortunately without port, which leads to the error : “this webpage is not available”.
Luckily, I was able to access my Linux laptop and run “iofogctl view” there and thus found the necessary port.
Second problem: The port does not seem to be the same. (@mehdi had a different one in his setup)
But let’s ignore that for once. The ECN viewer provides me with these values:
"ipAddress": string"192.168.0.3" "host":string"192.168.0.3" "ipAddressExternal": string"22.214.171.124"
So is there an easy way to get to the real “host” address?