more G-Labs products

Author Topic: IP Address  (Read 2298 times)

February 24, 2015, 08:39:11 PM
Read 2298 times

Maximo

  • ***
  • Information
  • Full Member
  • Posts: 84
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

February 25, 2015, 12:35:17 AM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
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.

February 25, 2015, 01:50:39 AM
Reply #2

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
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.

February 25, 2015, 06:39:26 PM
Reply #3

Maximo

  • ***
  • Information
  • Full Member
  • Posts: 84
Thanks. I've opened a request.

March 08, 2015, 07:52:33 PM
Reply #4

Jerry

  • *
  • Information
  • Newbie
  • Posts: 17
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.


March 08, 2015, 11:31:37 PM
Reply #5

Maximo

  • ***
  • Information
  • Full Member
  • Posts: 84
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

March 10, 2015, 03:03:52 AM
Reply #6

Jerry

  • *
  • Information
  • Newbie
  • Posts: 17
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

March 10, 2015, 09:15:32 AM
Reply #7

Maximo

  • ***
  • Information
  • Full Member
  • Posts: 84
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

March 12, 2015, 03:42:29 AM
Reply #8

Jerry

  • *
  • Information
  • Newbie
  • Posts: 17
Gary,

You need to test your USB port independent of HG, both on the host OS and the VM.

Jerry