Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools HTTP Basics Introduction to HTTP HTTP Requests Using Telnet

NetCat vs Telnet

Looking for an answer why telnet is not on OS Sierra anymore I saw a lot of posts about netcat - a similar tool i suppose. Could anyone explain what is difference and why would you prefer netcat (safety reasons were mentioned)? Can it be used for the purpose of this course as an alternative to telnet? Cheers

3 Answers

Netcat is new standard for MacOs, because of security reasons, i think. Yep, you can use netcan now. Just use the command: nc -c -v [url] [port]

andreavitiani
andreavitiani
13,313 Points

I can't get to work the following commands the the teacher writes

andreavitiani
andreavitiani
13,313 Points

I can't get Netcat to work. I just receive this following the command:

nc -c -v [url] [port]

found 0 associations found 1 connections: 1: flags=82<CONNECTED,PREFERRED> outif en0 src 192.168.0.45 port 58969 dst 3.85.154.144 port 80 rank info not available TCP aux info available

Connection to httpbin.org port 80 [tcp/http] succeeded!

when I type the commands: GET / HTTP/1.1 Host: httpbin.org

After hitting enter twice as it says in the video I get no answer of any kind. The cursor just goes two lines down.

I think the commands are different.... I honestly have 0 experience whit the terminal..

So basically I went to install Telnet via Homebrew package manager to follow along with the teacher.

First you have to type: GET / HTTP/1.1 then press Enter once, then you type Host: httpbin.org and press Enter twice.

andreavitiani
andreavitiani
13,313 Points

hello fools mate, Is it just what I did