LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-18-2010, 01:28 AM   #1
alee
LQ Newbie
 
Registered: May 2008
Posts: 28

Rep: Reputation: 15
Telnet | Netcat problem


Hi,

I have netcat installed on my Fedora 9 (VM) machine, with local ip address 192.168.186.128. then i run netcat as

Code:
nc -l 62323
where 62323 is any random port.

I have enabled telnet on windows 7 (host of vm machine) to connect to the netcat server. via this command
Code:
telnet 192.168.186.128 62323
but it does not work.

for testing i have did following things.
- disabled the iptables firewalls on fedora vm machine (service iptables stop)
- tried to ping both machines from each other and they were pinging properly.

Could someone tell why i am not able to do such a basic communication? Please?
 
Old 03-18-2010, 11:46 AM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
You're using netcat incorrectly, try this:
Code:
nc -l -p 62323
 
  


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
capturing data from IP port in background using telnet or netcat (nc) kmslick Linux - Software 4 03-05-2010 02:12 PM
interactive telnet/netcat script help Hailey's_Comet Linux - Software 1 12-29-2008 03:58 AM
How to automate SMTP emails using netcat (not telnet) beeblequix Linux - Software 1 12-23-2008 11:30 AM
problem with netcat in knoppix homy Linux - Networking 4 02-16-2007 11:58 AM
Netcat s0n|k Linux - Newbie 3 04-16-2006 06:16 PM


All times are GMT -5. The time now is 06:05 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration