Hi,
my vera is connected on wan with my router. is there a way to get the ip address of my vera without using the ui5. Something like a command on command line?
Thank you.
Hi,
my vera is connected on wan with my router. is there a way to get the ip address of my vera without using the ui5. Something like a command on command line?
Thank you.
You don’t say whether you mean from Vera’s command line or from another computer’s command line.
From Vera’s command line: ifconfig shows your upstream IP address.
root@MiOS_1234567:~# ifconfig eth0:0
eth0:0 Link encap:Ethernet HWaddr 00:FF:00:FF:00:FF
inet addr:10.191.21.248 Bcast:10.191.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5
From another computer on you LAN you can use a command-line web client like curl and visit the URL http://sta1.mios.com/locator_json.php:
$ curl http://sta1.mios.com/locator_json.php
{"units":[{"serialNumber":"1234567","FirmwareVersion":"1.5.621","name":null,"ipAddress":"10.191.21.248","users":["futzle"],"active_server":"fwd0.mios.com","forwardServers":[{"hostName":"fwd0.mios.com","primary":true},{"hostName":"fwd0.mios.com","primary":false}]}]}
in windows you can open file explorer and click on NETWORK then right-click on Home Authomation section the MiOS device and choose properties
Thank you for your replies,
but is there a way to get the ip of my vera from another computer on LAN without internet?
before mentioned windows network work without internet on local lan
for linux u can try :
sudo nbtscan 192.168.0.100-192.168.0.150
or smbtree
or nmap -sP 192.168.0.0/24
windows CMD : net view /all
FYI, Not everyone runs windows.
You can type the URL that @Futzle provided into any browser on your LAN.
http://sta1.mios.com/locator_json.php
Or if you are not on the same LAN:
http://sta1.mios.com/locator_json.php?username=[b]YourVeraUserID[/b]
At present I get an empty list.
this process is not dangerous ?
show the name of the unit to anynone ? and anothers private data ?
This is a week spot of Vera’s discovery process.
They should require the password when they are NOT on the LAN.
Is there no way to achieve this without internet?
Sure, but you have to be more forthcoming about what you consider acceptable.
You could portscan every potential host in your LAN and see which addresses listen to TCP port 3480. Probably that’s Vera.
You could set a UPnP control point to listen for devices on your LAN. Vera has a UPnP signature that you should be able to recognize.
Perhaps if you were to supply more information about what you hoped to achieve and the tools you have on hand, rather than bumping your thread with no further information, you’d get a more targeted response.
Hi futzle
i developed a plugin running on vera. the plugin provides data via upnp-variables. so that the mentioned pc should be able to request data on lan without internet connection. the software running on the windows/linux system is not written by myself, so i cant say anything about available tools. thats the reason why i asked about a commandline soulution. i hope this information helps?
thx
“Available tools” also includes your own programming aptitude, which will rule in or out some solutions.
If you can’t rely on there being an Internet connection, and you can’t abide (or can’t code) a slow-operating discovery mechanism like I mentioned in my last post, then it’s time to consider putting Vera at a fixed IP address and hardcoding the address into the desktop application. Really, servers (which Vera is) shouldn’t be getting random IP addresses through DHCP anyway.
looked in the luup code and everywhere else on the wiki and it seems there is no variable standard that gives the IP address of the vera. like futzle mentions it works better with a non-random IP but it should work also on DHCP. since there is not really an option to detect the vera on local lan besides UPnP signature or portscanning port 3480, perhaps its time to implement such in vera. please do correct me if im wrong.
In the Sonos plugin, we are using this lua code:
local stdout = io.popen("GetNetworkState.sh ip_wan")
VERA_IP = stdout:read("*a")
stdout:close()
debug("sonosStartup: Vera IP Address=" .. VERA_IP)
Best Home Automation shopping experience. Shop at Ezlo!
© 2024 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules