Opened 14 years ago

Closed 14 years ago

#7516 closed defect (fixed)

Lcdserver localhost lookup in Ubuntu

Reported by: anonymous Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: MythTV - Mythlcdserver Version: 0.22rc1
Severity: low Keywords: lcdserver ubuntu ipv6
Cc: Ticket locked: no

Description

mythfrontend and mythlcdserver can't connect using the default of localhost

log from mythfrontend -v network,socket

2009-10-18 21:57:50.060 Enabled verbose msgs: important general network socket
2009-10-18 21:57:50.085 Starting mythlcdserver
2009-10-18 21:57:50.610 Connecting to lcd server: localhost:6545 (try 1 of 10)
2009-10-18 21:57:50.610 MythSocket(bbc350:23): new socket
2009-10-18 21:57:50.611 MythSocketThread: readyread thread start
2009-10-18 21:57:50.611 MythSocket(bbc350:23): UpRef: 1
2009-10-18 21:57:50.612 MythSocket(bbc350:23): attempting connect() to
(0:0:0:0:0:0:0:1:6545)
2009-10-18 21:57:50.612 MythSocket(bbc350:23): connect() failed (InternalError)
2009-10-18 21:57:51.112 Connecting to lcd server: localhost:6545 (try 2 of 10)
2009-10-18 21:57:51.112 MythSocket(bbc350:23): DownRef: 0
2009-10-18 21:57:51.113 MythSocket(bcf730:21): new socket
2009-10-18 21:57:51.113 MythSocket(bcf730:21): UpRef: 1
2009-10-18 21:57:51.113 MythSocket(bcf730:21): attempting connect() to
(0:0:0:0:0:0:0:1:6545)
2009-10-18 21:57:51.113 MythSocket(bcf730:21): connect() failed (InternalError) 

Setting 'LCDServerHost' to 127.0.0.1 in the settings table fixes the problem. It looks like the localhost lookup is returning the ip6 localhost address 0:0:0:0:0:0:0:1 which is then causing the connection to fail.

The default hosts file in Ubuntu is :-

127.0.0.1	localhost
127.0.1.1	<this is set to the host name>

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Change History (2)

comment:1 Changed 14 years ago by paulh

(In [23915]) Work around a bug for Ubuntu users not being able to connect to mythlcdserver because the default host setting 'locahost' is being resolved to an ip6 address. Refs #7516, #7600.

comment:2 Changed 14 years ago by paulh

Resolution: fixed
Status: newclosed

(In [23916]) Backport r23915 from trunk.

Work around a bug for Ubuntu users not being able to connect to mythlcdserver because the default host setting 'locahost' is being resolved to an ip6 address. Fixes #7516, #7600.

Note: See TracTickets for help on using tickets.