Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#10165 closed Bug Report - General (Invalid)

port 6544 listening only on ipv6

Reported by: warpme@… Owned by: danielk
Priority: minor Milestone: unknown
Component: MythTV - Mythtv-setup Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Hi Recently I decided to give test for new web based setup. Unfortunately having IPv4 LAN I can't access BE as port 6544 listens only on IPv6. I'm on mythtv-master 20111112-g47d5296 on ArchLinux?. netstat -antu reports:

[root@mythtv system]# netstat -antu
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:5456            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:20048           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:81              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:6548            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:58484           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:57140           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:24000           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:12865           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:5060            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:873             0.0.0.0:*               LISTEN     
tcp        0      0 192.168.1.254:47689     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47681     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47613     192.168.1.64:80         TIME_WAIT  
tcp        0      0 127.0.0.1:22            127.0.0.1:36611         ESTABLISHED
tcp        0      0 192.168.1.254:47695     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47667     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47673     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47691     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47626     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47643     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47636     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47710     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47716     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47717     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47627     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47715     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47620     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47709     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47635     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47645     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47629     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47692     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47671     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47672     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47693     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47617     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47614     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47694     192.168.1.64:80         TIME_WAIT  
tcp        0      0 127.0.0.1:41674         127.0.0.1:6543          ESTABLISHED
tcp        0      0 192.168.1.254:47675     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47698     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47686     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47631     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:24000     192.168.1.254:43133     ESTABLISHED
tcp        0      0 192.168.1.254:47622     192.168.1.64:80         TIME_WAIT  
tcp        0      0 127.0.0.1:41648         127.0.0.1:6543          ESTABLISHED
tcp        0      0 192.168.1.254:47669     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47653     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47688     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47611     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47677     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47656     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47662     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47612     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47711     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47697     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47696     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47660     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:43133     192.168.1.254:24000     ESTABLISHED
tcp        0      0 192.168.1.254:47619     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47661     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47624     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47647     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47621     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47679     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47625     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47665     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47639     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47644     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47703     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47652     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47641     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47623     192.168.1.64:80         TIME_WAIT  
tcp        0    224 192.168.1.254:22        192.168.1.1:50924       ESTABLISHED
tcp        0      0 192.168.1.254:47685     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47659     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47628     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47658     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47700     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47651     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47705     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47704     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47655     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47634     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47702     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47648     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47714     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47707     192.168.1.64:80         TIME_WAIT  
tcp        0      0 127.0.0.1:42280         127.0.0.1:6543          ESTABLISHED
tcp        0      0 192.168.1.254:47670     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47666     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47657     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47646     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47680     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47663     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47649     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47630     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47699     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47706     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47615     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47640     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47687     192.168.1.64:80         TIME_WAIT  
tcp        0      0 127.0.0.1:41647         127.0.0.1:6543          ESTABLISHED
tcp        0      0 192.168.1.254:47632     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47683     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47684     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47638     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47708     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47633     192.168.1.64:80         TIME_WAIT  
tcp        0      0 127.0.0.1:42262         127.0.0.1:6543          ESTABLISHED
tcp        0      0 192.168.1.254:47690     192.168.1.64:80         TIME_WAIT  
tcp        0      0 127.0.0.1:36611         127.0.0.1:22            ESTABLISHED
tcp        0      0 91.189.74.10:443        64.208.49.45:59760      ESTABLISHED
tcp        0      0 192.168.1.254:47616     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47668     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47713     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47682     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47642     192.168.1.64:80         TIME_WAIT  
tcp        0      0 127.0.0.1:42261         127.0.0.1:6543          ESTABLISHED
tcp        0      0 192.168.1.254:47637     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47674     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47701     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47712     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47676     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47618     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47650     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47654     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47678     192.168.1.64:80         TIME_WAIT  
tcp        0      0 192.168.1.254:47664     192.168.1.64:80         TIME_WAIT  
tcp6       0      0 :::139                  :::*                    LISTEN     
tcp6       0      0 :::6543                 :::*                    LISTEN     
tcp6       0      0 :::111                  :::*                    LISTEN     
tcp6       0      0 :::6544                 :::*                    LISTEN     
tcp6       0      0 :::20048                :::*                    LISTEN     
tcp6       0      0 :::445                  :::*                    LISTEN     
tcp6       0      0 :::48095                :::*                    LISTEN     
tcp6       0      0 :::2049                 :::*                    LISTEN     
tcp6       0      0 :::44073                :::*                    LISTEN     
tcp6       0      0 :::873                  :::*                    LISTEN     
tcp6       0      0 127.0.0.1:6543          127.0.0.1:42280         ESTABLISHED
tcp6       0      0 127.0.0.1:6543          127.0.0.1:42261         ESTABLISHED
tcp6       0      0 127.0.0.1:6543          127.0.0.1:41648         ESTABLISHED
tcp6       0      0 127.0.0.1:6543          127.0.0.1:41647         ESTABLISHED
tcp6       0      0 127.0.0.1:6543          127.0.0.1:41674         ESTABLISHED
tcp6       0      0 127.0.0.1:6543          127.0.0.1:42262         ESTABLISHED
udp        0      0 0.0.0.0:20048           0.0.0.0:*                          
udp        0      0 0.0.0.0:59179           0.0.0.0:*                          
udp        0      0 0.0.0.0:57159           0.0.0.0:*                          
udp        0      0 255.255.255.255:1900    0.0.0.0:*                          
udp        0      0 239.255.255.250:1900    0.0.0.0:*                          
udp        0      0 0.0.0.0:2049            0.0.0.0:*                          
udp        0      0 0.0.0.0:67              0.0.0.0:*                          
udp        0      0 0.0.0.0:69              0.0.0.0:*                          
udp        0      0 0.0.0.0:111             0.0.0.0:*                          
udp        0      0 91.189.74.10:123        0.0.0.0:*                          
udp        0      0 192.168.1.254:123       0.0.0.0:*                          
udp        0      0 127.0.0.1:123           0.0.0.0:*                          
udp        0      0 0.0.0.0:123             0.0.0.0:*                          
udp        0      0 91.189.74.255:137       0.0.0.0:*                          
udp        0      0 91.189.74.10:137        0.0.0.0:*                          
udp        0      0 192.168.1.255:137       0.0.0.0:*                          
udp        0      0 192.168.1.254:137       0.0.0.0:*                          
udp        0      0 0.0.0.0:137             0.0.0.0:*                          
udp        0      0 91.189.74.255:138       0.0.0.0:*                          
udp        0      0 91.189.74.10:138        0.0.0.0:*                          
udp        0      0 192.168.1.255:138       0.0.0.0:*                          
udp        0      0 192.168.1.254:138       0.0.0.0:*                          
udp        0      0 0.0.0.0:138             0.0.0.0:*                          
udp        0      0 0.0.0.0:6549            0.0.0.0:*                          
udp        0      0 0.0.0.0:29466           0.0.0.0:*                          
udp        0      0 0.0.0.0:814             0.0.0.0:*                          
udp        0      0 127.0.0.1:950           0.0.0.0:*                          
udp        0      0 0.0.0.0:5060            0.0.0.0:*                          
udp        0      0 0.0.0.0:988             0.0.0.0:*                          
udp6       0      0 :::20048                :::*                               
udp6       0      0 :::52825                :::*                               
udp6       0      0 :::14145                :::*                               
udp6       0      0 :::2049                 :::*                               
udp6       0      0 :::111                  :::*                               
udp6       0      0 fe80::6ef0:49ff:feb:123 :::*                               
udp6       0      0 fe80::210:60ff:fedb:123 :::*                               
udp6       0      0 ::1:123                 :::*                               
udp6       0      0 :::123                  :::*                               
udp6       0      0 :::60092                :::*                               
udp6       0      0 :::814                  :::*   

Change History (4)

comment:1 Changed 7 years ago by robertm

Resolution: Invalid
Status: newclosed

This is incorrect, I have an IPv4-only backend and it listens fine on 6544. Please start on the users list until it is proven to be a MythTV bug rather than a network misconfig, and asked to open a ticket.

comment:2 Changed 7 years ago by robertm

Likely a dupe of #9820

comment:3 Changed 7 years ago by gcc@…

The original reporter of this bug has an IPv6-capable system, but he uses only IPv4 addresses. This is what Fedora 16 is providing by default, for example. He was correct in asserting that port 6544 is being bound to an IPv6 address on his IPv6-capable system. The root cause is MythCoreContext::MythHostAddressAny?() returns an IPv6 unspecified address if any IPv6 addresses were detected on the host; it doesn't consider the fact that you never configured any IPv6 addresses for use with the mythbackend. You can have success connecting via an IPv4-only transport to that IPv6-bound port, which provides a semblance of working operation. Other parts of the system, however, break. In the UPnP support, URLBase will be reported as something similar to "[::FFFF:C0A8:B47]:6544" rather than "192.168.11.71:6544". The IPv6 address is unusable by any device which expects IPv4-only addresses. One way to fix the problem is to modify MediaServer::Init() so that the httpServer listen() is done with an IPv4 QHostAddress::Any unless an explicit IPv6 address was used to define BackendServerIP address; in that case, use QHostAddress::AnyIPv6.

comment:4 Changed 6 years ago by Raymond Wagner

Alter various listen servers to bind to discrete addresses.

Refs #10165

Branch: master
Changeset: 37385baff83eea77116d13e22be96b74cfde2cec

Note: See TracTickets for help on using tickets.