Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

hostname vs IP address

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
tumutbound
Posts: 154
Joined: Thu 11 Mar 2010 11:03 am
Weather Station: WH1081
Operating System: Linux, Raspberry Pi (Wheezy)
Location: Port Huon, Tasmania , Australia
Contact:

hostname vs IP address

Post by tumutbound »

The beta has been running on my Raspberry Pi B+ for nearly 12 hours without any warnings messages - once I got the Cumulus.ini sorted out.

One thing I've just noticed is that I can connect to Cumulus server via the ip address but not the hostname. e.g.

http:192.168.1.128:8998 works but:
http:plusberry.homelan:8998 gives an error:

Bad Request (Invalid host)

Host is in the DNS and I can ping, ssh etc to it by name from other hosts.
My weather
CumulusMX (3036)
Raspberry Pi: Wheezy
FineOffset WH1081
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: hostname vs IP address

Post by steve »

Using the host name works OK for me, so there must be something different about the way our systems are set up. I don't know what that is, though...
Steve
Adrian Hudson
Posts: 220
Joined: Mon 03 Jan 2011 4:27 pm
Weather Station: Davis Vantage Pro2
Operating System: Win 7
Location: Willand, mid Devon.
Contact:

Re: hostname vs IP address

Post by Adrian Hudson »

tumutbound wrote:http:192.168.1.128:8998 works but:
http:plusberry.homelan:8998 gives an error:.
I assume you are actually typing http://plusberry.homelan:8998
tumutbound
Posts: 154
Joined: Thu 11 Mar 2010 11:03 am
Weather Station: WH1081
Operating System: Linux, Raspberry Pi (Wheezy)
Location: Port Huon, Tasmania , Australia
Contact:

Re: hostname vs IP address

Post by tumutbound »

Adrian Hudson wrote:
tumutbound wrote:http:192.168.1.128:8998 works but:
http:plusberry.homelan:8998 gives an error:.
I assume you are actually typing http://plusberry.homelan:8998
Yes, typo in the post :)

Still trying to track this one down. web server on the same host doesn't give this error.
My weather
CumulusMX (3036)
Raspberry Pi: Wheezy
FineOffset WH1081
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: hostname vs IP address

Post by mcrossley »

Using 'localhost' or '127.0.0.1' doesn't work for me either. Is MX only bound to the IP it spits out at initialisation?
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: hostname vs IP address

Post by steve »

mcrossley wrote:Is MX only bound to the IP it spits out at initialisation?
Yes.
Steve
tumutbound
Posts: 154
Joined: Thu 11 Mar 2010 11:03 am
Weather Station: WH1081
Operating System: Linux, Raspberry Pi (Wheezy)
Location: Port Huon, Tasmania , Australia
Contact:

Re: hostname vs IP address

Post by tumutbound »

So far:

hostname is correct (plusberry)
/etc/nssconf has the following line:

hosts: dns files

so DNS is being referenced before /etc/hosts

Dynamic DHCP updates DNS and other hosts can ping/dig plusberry.homelan

Even tried putting a line in /etc/hosts:

192.168.1.155 plusberry.homelan plusberry

Still get same error.

Access via IP address is OK
My weather
CumulusMX (3036)
Raspberry Pi: Wheezy
FineOffset WH1081
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: hostname vs IP address

Post by mcrossley »

Is 'plusberry' the actual host name of the computer? I can connect using the 'real' host name OK, but 'localhost' does not work.
tumutbound
Posts: 154
Joined: Thu 11 Mar 2010 11:03 am
Weather Station: WH1081
Operating System: Linux, Raspberry Pi (Wheezy)
Location: Port Huon, Tasmania , Australia
Contact:

Re: hostname vs IP address

Post by tumutbound »

mcrossley wrote:Is 'plusberry' the actual host name of the computer? I can connect using the 'real' host name OK, but 'localhost' does not work.
A hostname command returns:

plusberry


I can't use localhost as I'm connecting from another computer, not the Pi that Cumulus is running on.
My weather
CumulusMX (3036)
Raspberry Pi: Wheezy
FineOffset WH1081
Locked