Change the port HM is 'listening on'


 

Dave R

TVWBB Fan
I did a search and only found posts that tell you how to setup your firewall/port forwarding in your router. What I am looking is to change which port HM uses. Instead of it using port 80, I would like to change it to something like port 8081. Anyone know how to do that?

Dave
 
I wish I had an answer, I made a post last week asking for the same thing, so that I could have more then one heatermeter on the network, never did get an answer.
 
Dave, you should be able to change the port by ssh'ing into the HM and editting the /etc/config/lucid file

Change the port on the "list address" line and reboot.

Code:
config daemon 'http'
	option slave 'httpd'
	list address '80'
	list publisher 'webroot'
	list publisher 'luciweb'
	option nokeepalive '1'
	option memlimit '1572864'
	option enabled '1'

John, you can have as many HMs as you want on your home network listening on port 80, that still doesn't change the fact that it looks like your ISP is filtering incoming ports. Changing each HM to it's own listening port won't really help.
 
Dave, you should be able to change the port by ssh'ing into the HM and editting the /etc/config/lucid file

Change the port on the "list address" line and reboot.

Code:
config daemon 'http'
	option slave 'httpd'
	list address '80'
	list publisher 'webroot'
	list publisher 'luciweb'
	option nokeepalive '1'
	option memlimit '1572864'
	option enabled '1'

John, you can have as many HMs as you want on your home network listening on port 80, that still doesn't change the fact that it looks like your ISP is filtering incoming ports. Changing each HM to it's own listening port won't really help.

Thats good info on the HM listening port, thanks. In John's case, perhaps his ISP is only blocking Port 80 (which is common), so if he were to change the HM to another port perhaps he can get through to the HM? Worth a try anyways...
 
The port forwarding is done on the router. In John's case, I think only port 80 is being allowed. Either way, changing the port on the HM won't solve anything. If the router already has an inbound port 80 forward to 10.10.10.10:80, having your 2nd HM on 10.10.10.11:8080 won't solve anything.
 
I edited the file and changed the port to 8081. Saved the file. Rebooted the HeaterMeter and noticed the file was back to the old one...like it was 'restored' upon reboot.

I think Bryan mentioned something about the restore feature or something in another post.

Dave
 
I edited the file and changed the port to 8081. Saved the file. Rebooted the HeaterMeter and noticed the file was back to the old one...like it was 'restored' upon reboot.

I think Bryan mentioned something about the restore feature or something in another post.

Dave

Interesting. What if you delete /mnt/mmcblk0p4/backup.tar.gz before editing /etc/config/lucid and see if the setting survives a reboot or 2.
 
Search for "NO restore" or was it norestore??? At any rate, you add that to one of the files on the root of your HM and it will not check/restore your backup at boot. Hopefully you can make TVWBB search genie turn up a result for the thread where that was discussed recently for exactly how to use it, sometimes I have trouble finding threads with search though....
 
Steve_M,
Not certain if this was part of it but I had to change the port 80 entry in the following files as well in addition to the file you listed:
/etc/avahi/services/http.service
/etc/avahi/services/linkmeter.service

After reboot, my HM now is using port 8081 as the webui.

Dave
 
I just tested my own suggestion "delete /mnt/mmcblk0p4/backup.tar.gz before editing /etc/config/lucid" and it seems to be holding after many reboots.
 
Ok for instance, If I have two HM's connected to the router(example IP HM#1 192,168,1,15, HM#2 192.168.1.16) The way I have it now is that I have forwarded port 80 to HM#1. So, when I type in my address UDS.servebeer.com(noIP.com) it will go to HM#1. Now if I add HM#2, I cant forward port 80 to the IP 192.168.1.16, because its already being forwarded to 192.168.1.15 and router wont let you set up the same port to multiple IP's. That's why I want to change the port of HM#2 so that I can have an address like UDS2.servebeer.com.

Thank you Steve for explaining on how to do that, that's what I wanted to do but was not sure what file to find it in.
 
Ok for instance, If I have two HM's connected to the router(example IP HM#1 192,168,1,15, HM#2 192.168.1.16) The way I have it now is that I have forwarded port 80 to HM#1. So, when I type in my address UDS.servebeer.com(noIP.com) it will go to HM#1. Now if I add HM#2, I cant forward port 80 to the IP 192.168.1.16, because its already being forwarded to 192.168.1.15 and router wont let you set up the same port to multiple IP's. That's why I want to change the port of HM#2 so that I can have an address like UDS2.servebeer.com.

Thank you Steve for explaining on how to do that, that's what I wanted to do but was not sure what file to find it in.

John,

Your router at home only has 1 IP address, lets call it 8.7.6.5. That's what uds.servebeer.com points to. You're correct in the fact that you can only create 1 port forward at a time, so if you assign incoming port 80 to 192.168.1.15, port 80, you'll be able to reach it via http://uds.servebeer.com

In order for you to reach your second HM, you need to setup a second port forward. This time forward incoming port 81 to 192.168.1.16 port 80 and you'll be able to reach your second HM via http://uds.servebeer.com:81

There should be no need to change the listening ports on anything inside of your home network.



Here's what my port forwarding rules look like on my router

 
Last edited:
I don't have that option, I can only put in the name, start port, end port, and IP address

2yuhytv.png
 
Most consumer routers support the port forward feature. Unless you have a router that has been provided to you by your ISP, I would think that you already have access to this function.

-- Mache
 
Most consumer routers support the port forward feature. Unless you have a router that has been provided to you by your ISP, I would think that you already have access to this function.

-- Mache

His router does support port forwarding, it's just that the router doesn't support specifying the destination port on the destination host, so inbound port 80 must go to port 80 on the inside host, and inbound port 81 must to go port 81 on the inside host. This drastically limits the flexibility of the port forwarding configuration.
 
John, Don't you have an original Heater Meter built on a Linksys WRT router? Not sure if you can roll it back to router mode, but if you can do that and load Tomato firmware on it you will have the port forwarding options you need.
 

 

Back
Top