HomeGenie Forum
General Category => General Discussion => Topic started by: Maximo on February 24, 2015, 08:39:11 PM
-
How to I get Homegenie to use a specific IP address? I have a server running a number of web applications, I've tried to change the IP address they use but HomeGenie seems to be assigned 0.0.0.0:80.
Yes I know I can change the port but that causes a few complications elsewhere, so for my setup it would be good if I could configure a specific IP address.
Thanks for your help.
Garry
-
Raspberry Pi/Windows/Mac/etc?
You would change the IP with the OS which is independent of HG. OR, if you use DHCP, you can use the router to assign a specific IP for a given device (MAC address). I personally assign IP's with the router so I only have one place to go to make a change.
-
Current version of HG bind to *any* interface address and the only way to change this, is from source code:
https://github.com/genielabs/HomeGenie/blob/master/MigFiles/MIG/Gateways/WebServiceGateway.cs#L91
you can file a feature request here:
https://github.com/genielabs/HomeGenie/issues
g.
-
Thanks. I've opened a request.
-
Install HomeGenie on a virtual machine. It's not really that hard.
Install free Oracle Virtual Box and a Linux VM on your PC/Mac, then run HomeGenie on the Linux VM. Assign a single IP address to your VM (usually the default). The VM will also need access to USB or whatever hardware that you use.
I don't know why someone hasn't created a HomeGenie VM image before now.
-
Hi Jerry,
I've tried that route and found that the USB interface was some what unusable, constantly timing out. But if you have any advise of getting the performance up I'd be happy to re-visit my VM.
Cheers,
Garry
-
Garry,
What VM software were you using.
Was the USB port being shared with the host or another VM?
See this post: https://forums.virtualbox.org/viewtopic.php?f=6&t=55483
The same idea applies for vmware.
Jerry
-
Hi Jerry,
I'm running VMWare ESXi 5.0. The USB port isn't shared with any other VM's. Although HomeGenie can see the controller it just times out when doing a query against the node. So there is a performance drop off somewhere along the route.
Cheers,
Garry
-
Gary,
You need to test your USB port independent of HG, both on the host OS and the VM.
Jerry