Skip to content

guard livereload using ipv4 only . how to force to use ipv6. #174

@devprashant

Description

@devprashant

on server allowed to use only ipv6 for connection inbound and outbound.

netstat --listen output:


Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 *:ssh                   *:*                     LISTEN     
tcp        0      0 *:35729                 *:*                     LISTEN     
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN     
tcp6       0      0 [::]:3000               [::]:*                  LISTEN     
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  2      [ ACC ]     STREAM     LISTENING     1185713259 @/com/ubuntu/upstart
unix  2      [ ACC ]     SEQPACKET  LISTENING     1185708161 /run/udev/control

here is the guardfile:

guard 'livereload', host:'0.0.0.0' do
 watch %r{^.*\.(html|css|js|png|jpg|jade)$}
end

here i do need to mention host specifically.

from netstat its visible guard binds livereload to ipv4 and not ipv6.

how to bind it to ipv6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions