Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clip command hangs #1

Closed
paulhybryant opened this issue Sep 22, 2015 · 2 comments
Closed

Clip command hangs #1

paulhybryant opened this issue Sep 22, 2015 · 2 comments

Comments

@paulhybryant
Copy link

Somehow the nc command now waits indefinitely after sending the content (it does not in the past, not sure why).

changing nc localhost to nc -c localhost 8377 (or nc -q 0 localhost 8377 depending on the netcat version you have) works.

@00dani
Copy link

00dani commented Oct 17, 2016

I figured out what the difference is: the nc that ships with MacOS is an old fork of OpenBSD netcat, while the nc available in Homebrew is the latest version of GNU netcat, 0.7.1. Amusingly, GNU netcat's latest release is actually older than Apple's fork.

The easiest way to get a modern netcat is to install the Homebrew formula nmap, which also ships with a netcat command called ncat:

$ brew install nmap
$ ls | ncat -4 localhost 8377

(The -4 is needed by default since Clipper only listens on your IPv4 address, and nmap's netcat supports IPv6 too.)

@wincent
Copy link
Owner

wincent commented Oct 17, 2016

Hm. We should listen on IPv6 loopback too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants