LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-28-2009, 04:28 AM   #1
Predatorian
Member
 
Registered: Mar 2008
Location: currently, where ever the army takes me
Distribution: Debian Lenny/Ubuntu or Arch Linux
Posts: 145

Rep: Reputation: 28
netcat issue, not sure what to expect from it


hello LQ'ers,

recently, ive become interested in leraning how to use netcat, mainly for squirts and giggles, and what ive read, i udnerstand you that you need both sides of the "converstaion" to be using nc, the server nc -l 1234, and on the one connecting to it, nc <ipaddr> 1234. i even disabled my firewall, and the problem im having is, supposedly, when i type something on one side, its supposed to show up on the other, correct? like i can run commands, or just pipe text to the otherside like a very basic chat program, correct? well, so far, im getting nothing on either sides, and then i closed it on one end, then the text popped up, and gave me errors about trying to run the text i sent. then i tried to reconenct, and it said that the connection was refused. is there something im not diong right, or should i look for soemthing? thanks for any help.
 
Old 10-28-2009, 03:12 PM   #2
janoszen
Member
 
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143

Rep: Reputation: 22
tcpdump

Use tcpdump or tcpflow to debug this issue. If you are sitting in front of a desktop box, you might try Wireshark. You should see the three-way-handshake complete. If this is not the case, might have limited connectivity.
 
Old 10-29-2009, 11:32 AM   #3
Predatorian
Member
 
Registered: Mar 2008
Location: currently, where ever the army takes me
Distribution: Debian Lenny/Ubuntu or Arch Linux
Posts: 145

Original Poster
Rep: Reputation: 28
lol, thanks for the help, i was wiresharking it, and i tried the command, and i saw 3 packets pop up. im not sure what exactly im looking to read. i saved the sniff so i can look in it later.
 
Old 10-29-2009, 12:53 PM   #4
janoszen
Member
 
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143

Rep: Reputation: 22
Dive

That could be your handshake. Take a good dive into the topic, there is plenty to read out there.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Expect script: how do i send function key F12 in an expect script alix123 Programming 4 09-01-2013 09:06 PM
netcat -e Devilz Linux - Networking 5 01-03-2008 02:05 AM
Netcat s0n|k Linux - Newbie 3 04-16-2006 05:16 PM
stunnel and netcat?? scoobydude Linux - Networking 0 05-25-2005 01:43 AM
Expect install issue rickseiden Linux From Scratch 0 11-01-2004 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration