Thank you radoulov for your help on netcat command (nc -lp)


 
Thread Tools Search this Thread
Operating Systems Linux Thank you radoulov for your help on netcat command (nc -lp)
# 1  
Old 07-02-2011
Thank you radoulov for your help on netcat command (nc -lp)

Hello,

Thank you very much for the line nc -lp <port> . I tried to run simple chat session with nc as it's shown in catonmatDOTorg but failed miserably with that syntax inspite of opening port 7777 by iptables . But your command example is working nicely.
So a bagful of thanks Smilie)

Only one hitch. After opening a port [7777 using iptables such as iptables -A INPUT -m state --state NEW -m tcp \
-p tcp --dport 7777 --j ACCEPT ] nmap still showing the port
7777 is closed. [nmap -p 7777 localhost]

---------- Post updated at 06:00 AM ---------- Previous update was at 04:30 AM ----------

Oh! I have made a conceptual mistake. I have unblocked a port but haven't opened it as unblocking a port doesn't mean opening the port, I have just enable the port to reach for so a service can use it, When a service is running in that port,, then the port is said to be a open port[ listening for a connection]

Last edited by vectrum; 07-02-2011 at 08:09 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

Netcat ( nc -l ) as webserver

Dear Linux guru's I am trying to create a webserver using nc (netcat only) on RHEL 7.2 running on bash shell. now the easy thing is to get nc listing to a port and respond back $ while true; do { echo -e 'HTTP/1.0 200 OK\r\n'; set; } | nc -l 7877; done This when called from a... (3 Replies)
Discussion started by: chakrapani
3 Replies

2. UNIX for Advanced & Expert Users

Telnet vs netcat behavior

Currently I run a number of network tests using netcat that checks for an open port on a remote IP-address, using this syntax: netcat -v -w 5 -z 107.249.95.5 4488 For some reason, the netcat command above is hanging (although others work fine), but a telnet is showing a valid connection like... (4 Replies)
Discussion started by: ckmehta
4 Replies

3. IP Networking

Help with Netcat

Hi all, I know my question is regarding Windows and not Linux, but I simply need people who know Netcat pretty well and I'm guessing here is a good place for that. So on with my question. I'm doing some research, and I was playing around with netcat on a WinXP VM but I can't seem to get... (0 Replies)
Discussion started by: MrCrumbs
0 Replies

4. Shell Programming and Scripting

Post using nc(netcat)

Hi; I have a url like http://localhost:8080/examples/jsp/dates/nextPageToPost.jsp?name=ajay&password=pas&sex=Male&check=on&nationality=USA&description=aa&submit=submit in which i want to use nc for http post for parameters like "name","password"....etc can neone please help me how to do that... (3 Replies)
Discussion started by: ajaypadvi
3 Replies

5. Solaris

Please help me to install netcat on solaris

hello guys, i want to install netcat on my solaris. after i tar and gunzip netcat i'm confuse what do i must to do ? please help me to install netcat on my solaris. I'm beginner :( (2 Replies)
Discussion started by: praset
2 Replies

6. Solaris

For Radoulov

Hi , I have got your reply but i have this condition .AS my database is down for more than 6 hours on a particular sunday of the month so i am checking its availability. for i in 1 2 3 4 do Get_Mv_Count #fetches the value from remote DB case $TR in "" | ** )... (1 Reply)
Discussion started by: megh
1 Replies

7. Shell Programming and Scripting

netcat

Is there a way how to react on the message a client sent to the server? I would like as the client sent message to server: "get information such and such" and server would answer. Thank you for reply! (6 Replies)
Discussion started by: MartyIX
6 Replies

8. UNIX for Advanced & Expert Users

Netcat with Authentication?

I'd like to do a data transfer without encryption but with a guarantee that my data comes from a legit source. I'm thinking something that uses a public key scheme to sign the data. Does anyone know of something like that? Thanks! -Pileofrogs (1 Reply)
Discussion started by: pileofrogs
1 Replies

9. Programming

netcat like file transfer

Hi Folks I am not a c programmer .But i need help in writing a program which can do this any ideas on how to go about it . i start a server on the target server where files need to be copied start-server -port 5006 & ---start the server and listen it on a partcular port on the source... (2 Replies)
Discussion started by: linuxdba
2 Replies
Login or Register to Ask a Question
bzadmin(6)							      BZFlag								bzadmin(6)

NAME
bzadmin - a text based client for BZFlag SYNOPSIS
bzadmin [-help] [-hide msgtype[,msgtype]...] [-show msgtype[,msgtype]...] [-ui {curses | stdboth | stdin | stdout}] callsign[:pass- word]@hostname[:port] [command] [command] ... DESCRIPTION
bzadmin is a textbased client for the game BZFlag. It can't be used for playing, but it can be used to see when players join and leave the game, to see the chat messages, and to send messages and commands to the server, as well as see several other vital game messages. When you start bzadmin without any command line options other than callsign and hostname a simple curses-based user interface will be started (unless you built bzadmin without curses support). This interface is divided into three rectangles; the output window (which covers almost all of the terminal), the target window, and the input window. The output window is where messages from the server will be shown. The target window shows the name of the player that will receive your next message, or 'all' if it will be a public message. You can change target by using the left and right arrow keys. The input window is where you type your messages. It also supports tab completion of commands and callsigns. You can clear the input window with the key combination Ctrl-U, and you can generate a /kick command for the current target with the F5 key (if the current target is a player). You can also generate a ban command for the current target with the F6 key, but this only works if you are an admin and the server has sent you that players IP address (as a response to a /playerlist command). The curses user interface also has a simple menu system where you can edit the server variables (if you are an admin) and see a player list. If you are an admin you can also see the IP addresses in the player list, if you have sent a /playerlist command. The menu shows up when you hit the F2 key. It only covers the upper half of the screen, so you can still see what's going on in the game. You can navigate through the menu with the up and down arrow keys, and use the enter key to select submenus and other menu items. If you hit F2 again the command prompt will regain keyboard focus, but the menu will still be visible. If you hit F2 a third time the menu will go away. Options -help Show a simple help text. -hide msgtype[,msgtype]... Tell bzadmin not to show these message types. The available message types are chat, join, kill, leave, pause, ping, rabbit, spawn, time, and over. By default chat, join, kill, leave, pause, and rabbit are shown. You can also change this while bzadmin is running with the commands /show <msgtype> and /hide <msgtype>, and from the curses menu. -show msgtype[,msgtype]... Tell bzadmin to show these message types. See -hide for a list of available message types. If a message type is listed both in -show and -hide it will not be shown. -ui {curses | stdboth | stdin | stdout} Select the user interface that you want. The curses interface is the default, and it is described above. The stdin interface reads user commands from the standard in stream and sends them to the server. All server output is ignored. The stdout interface prints all server output to the standard out stream. All user input is ignored. The stdboth interface is a combination of stdin and stdout - it prints server output to the standard out stream, and reads user commands from the standard in stream. callsign[:password]@hostname[:port] Specifies the callsign that you want your client to use, and the hostname where the BZFlag server is. The port number is optional, and the default value is 5154. command You can specify messages and commands to send to the server on the command line. BZAdmin will continue running after sending the specified commands. Examples bzadmin admin@localhost:5154 Join the game on localhost, port 5154, using the callsign 'admin'. bzadmin admin@localhost '/passwd secretpass' '/ban 192.168.0.2' Connect to the server at localhost and ban the IP 192.168.0.2. bzadmin -ui stdout spy@bzserver.xy | grep magicword Connect to bzserver.xy and print all server messages that contain 'magicword'. SEE ALSO
bzfs(6), bzflag(6), bzw(5) bzadmin-2.0.16 2011-12-27 bzadmin(6)