Added: 4 years ago
From: kirgy9
Views: 110,663
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (346)

Sign In or Sign Up now to post a comment!
  • How well would this code work being done in VB 2010?

  • how can i use this in our school's lan connection?

  • Dude ... Record in HD ... Coudlnt see anything

  • I made the message box say "YOU HAVE RECEIVED YOUR DATA DOUCHEBAG"

  • Does anyone know how I can get my finished product to work on another computer without VB installed? It works fine on my computer but cannot get it to work on the computer I want communicate with....

  • Can you have it so that you can see (in another textbox) who you are chatting with? I have a sketchy idea about it :/

  • Where can i get "Component" on Visual Ultimate 2010 ?

  • Comment removed

  • arggggggggggg mine doesnt have Socket1

    

  • @Archfullerton Try Winsock1.

  • Bro nice vid but i have MAC and a new business with some friends, do you know how to create an internal chat only for us, so we can comunicate better. TY

  • A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll

    HELP!

  • Thanks for this vid i adapted it for 2008 and got it

    Sorry for the Comment on an old video

  • Could you do this but with Video (Video chat)

  • lÖl_i_fËèl_sØ_lóñÉlÿ_tödãy

  • @pokemarisonic first of all this is lan chat program, so it will not send data out of the state

  • Tell me will this OCX work with VB 2010????

  • how can i do this in visual basic 2010 exppress?

  • i have an error... when i click send it says "The requested address is a broadcast address, but flag is not set... please help... i followed all your instructions..

  • Comment removed

  • Thumbs Up if 8:10 scared the crap out of of you if you had the speakers up.

  • @chopy104 it scared the crap out of me

  • @chopy104 At I thougt it was a virus payload but then I went back and then I knew it was the video.

  • how to find out the remote host

  • @dbzntct technically this is a peer-to-peer (P2P) program. However, one method of finding other clients would be to send a packet to the IP 255.255.255.255. This sends the data packet to ALL IP on the local network. You could send the local IP in this packet, and get all others to respond to that address (or the global address) with their own IP. You could put the responses into an array of IPs, and put the code into a function to allow updates of connected users. Hope that helps.

  • @kirgy9 thanx

    it helps :-D

  • nice tut ...

    which recording system do you use

  • @dbzntct thank dbzntct. When making this tutorial it was the free version of HyperCam. Now days I'm using Camtasia Studio. You can get a free trial online, or you can pay for a premium version. Its very handy, makes video editing a breeze. I really like the "video in video" option it supports - you can then overlay a webcam into the video,

  • hi I m working on ( LAN) Local area network messenger and I want to make an application which should work as client and server too. like skype. could you help me how to this......

  • hi I m working on LAN messenger and I want to make an application which should work as client and server too. like skype. could you help me how to this......

  • Awesome - just what I needed! Thanks!!!

  • @MrPLEASEsubscribe2me I'm glad that helped you :] that's my aim.

  • can we use listbox instead of textbox(textout)???

  • Very Simple just the way I love it. Now... is there anyway you could do a WAN Chat Program? maybe just as simple?

  • @UserIsAnFBIAgent I'm in the process of making a tutorial for just that. Its a little more complicated but all will be explained in the video. Hit subscribe to get a notification of the video when it's published. It should be up in a couple of weeks.

  • @kirgy9 Can you upload a tutorial about how to create a WAN chat?

  • It works on Vista Home Premium x86, Sony Viao - Intel™ T2330, 1st I am The Administrator for vista, 2nd I run Cmd, and type "netsh winsock reset" press enter, and restart the Pc. 3rd. went and downloaded MSWinsock.ocx and copied it to C:\windows\system32 4th did the code, like shown in the video tutorial, and it works.

  • i kepp getting the runtime error and i would really love to have this plez help!!: Dim msgin As String Dim msgout As String Private Sub Cmdsend_Click() msgout = user.Text & txtout Socket1.SendData msgout End Sub Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long) MsgBox ("data recieved") Socket1.GetData msgin txtin = txtin & msgin & vbNewLine End Sub
  • So If I'm using my home network I make this and i type something from my computer and it should pop up on everyone elses?

  • lol "this is not me" ahahahaaahha

  • What was the buzzing noise or is it just me?

  • but i haven't got a microsoft winsock...

  • can admins catch me

  • @ihopethisaccountwork you're data on the network will be able to be seen in raw, unencrypted format. So everything that is passed to "socketX.sendData" will be visible. However, you could always write your own encryption algorithm function that is called just before sending the message. You could encrypt it however you like, and have it decrypted on the other side. I very much doubt an admin will go through the hours of amature effort to decrypt a mysterious string sent over LAN.

  • @kirgy9 How?

  • @kirgy9 i more want it to send messages to friends at school

    btw dose visual studios 2010 visual basic work

  • i don't have winshock boshit

  • I hate to agree with such rude people, but some source code would make this a lot easier.

  • @AdamSimpsonMusic then he says the right and correct him self :)

  • Can you change the top left icon? If you know how plz answer me.

  • PUT THE CODES STPID MOTHER FUCKER

  • Nice

  • I dont have that winsock bullshit, i swear, what to do?

  • put the codes in the description!

  • @stenyboy5 Sorry, but I dont want to do that; I'm trying to encourage active learning of the process not provide a short-cut for code hunters. I appreciate the feedback though, best of luck.

  • is not working for vb 2008:((?

  • oh Sorry my english is bad xD but thanks for the quick response I really wanted to ask whether the program what you're doing is working on hamachi.

  • hey goes the LAN chatroom witch hamachi over internet ?

  • @TheHeadhunter84 Im not sure what you asking, but I assume your are asking whether or not the program works over the internet? The short answer is no. However I am writing a tutorial for this at present.

  • @kirgy9 is anything like this posible with .bat and notepad???

  • @TheHeadhunter84 This idea should work over a hamachi network if you have the right ip addresses.

  • nice tut but i still dont know how to send messages with it?

  • i cant see winsock help plz;(

  • @jingiisman in some later editions of XP winsock is not present in the DL library. You will have to search for the winsock control, download it, and move the file into your registry folder. Then it will appear in the VB component list. I hope that helps.

  • How can I make the chat online?

  • LOL why lan???

  • @ultragaming1993 You could use LAN if you wanted to restrict access to your network. Practical applications for this could include secure systems inside a business holding sensitive data. You would find LAN being used in most schools for electronic student registration. I hope this fields your ignorance.

  • @kirgy9 yeah i know.. its already fixed.. sry for the stupid comment^^ it was dim that i was was missing^^ its now fixed: Dim NiTrO As String

    Call Winsock1.GetData(NiTrO, vbString)

    Text3.Text = Text3.Text & NiTrO & vbCrLf

  • Hi, I'm using visual basic enterprise edition with windows 7, ran the same code but it gave me no results, not even the message box popped up saying Data Received. What could the cause be?

  • i nevr could quite understand the meaning of LAN is it (Local Area Network?)

  • @cageddestroyer Thats right, LAN stands for Local Area Network. That is opposed to WAN - Wide Area Network. A network of computers in your home or at your school/work connected via routers (or Network Hubs) is known as a LAN network.

  • @kirgy9 i have a trouble ive made a chat and it works but when i uses it with a friend it doesnt works,ppl say that its coz a router cant be only server but i dont know ow to fix this problem.¿can u aid me?

  • @ramonet27101993 This tutorial is for a local area network only, so it will only work within the range of 1 router rather than the entire internet. However, the winsock control does have the TCP address family property (which requires a different syntax) which will enable you to chat accross the internet. Routers commuinicate using ports-which are normaly all open on a LAN, but over the internet they are restricted. You will need to open these ports.

  • @kirgy9 and do u know which are these ports?

  • @ramonet27101993 the ports used over the local area network at define in the Winsock control's "port" property within the visual basic object. You can change them as you please. You will then, if you router is blocking local ports, need to "open" these so that the traffic can commuinicate over them.

  • @kirgy9 yeah its what im trying to do i go at shell but when i put telnet 192.168.1.1 then appears "login:" and then "password" my router is the model ct536 so the login and the password should be "admin" but it doesnt works and i dont understand why....

  • @cageddestroyer Yes.. omg

  • Jesus Christ! That beep around 8:00 scared the living shit out of me!

  • this would be good for school:P

  • what's up guys guys hey warheart 20 you ask what is dim is =(decleration in memory) are you got that?

  • Unless u r a mute or have a really fucking long LAN cable u don't need this. but it would be cool to make i guess.

  • @axljacoby This is pretty outdated, but it works for wireless networks too. We were taught this in college which was pretty good to chat to people accross campus with friends out of class or in ICT class. We implemented the same thing into a what appeared to be an excell spread sheet so the teachers couldnt tell. The idea of commuinicating could also open opotunities for other things such as games (which I made a chess game for coursework, see my other video) But youre right, it is outdated now.

  • Ouch Ms are getting dumber or what, no more components. thats why vista and 7 are so poorly made i guess. Haha.

  • wear is the winsock i cant find it on mine i have visual studio 2010?

  • @jasek1w this tutorial is now quite outdated. Windows vista and windows 7 do not come with the winsock control, nor does some later editions of windows XP. Its a shame as the winsock control was widly used, especialy in gaming. You may be able to install it manualy, just search google for "winsock control download" and install it into your registery. Im not entirly sure if this will work in vista's or window 7's enviroment.

  • @kirgy9 It works in vista on my laptop but it is called winstock1 not socket1 but that it i think

  • nice tutorial, good explained but your voice is to quiet.

  • Thanks, man. It helped :)

  • Can u explain me more about what does Dim mean?

  • @warheart20 Hi warhear20. This tutorial is somewhat outdated now, but the question you have asked is still relevent for the current version of visual basic. "Dim" is what you use to 'declare' what is called a variable. Example: Dim var1 as string

    In the example our variable is "var1", just like in alegbra "var1" can be anything we tell it to be. The "Dim" is just the coding to inform visual studio that we are about to "declare" a variable. You could use it like this: Dim myValue as integer

  • If you want to do this in VB 2008, go on my channel and look at 'Chat Server & Client Code'

  • kan u use headsett on this program and chatt

  • 8:08 ouch.

  • how make this with realbasic??? please help me

  • my thing says error and the i clicked debug but it says that there is something wrong with 'Socket1.SenData MessageOut' PLz Help

  • @Maximason Im asuming you are using visual basic 6.0 with the winsock control.

    Please make sure that you have changed a property of the winsock control from "TCP/IP" to "UDP"

    Also, please make sure it is correctly named "Socket1" as I think I made it something different in the video by mistake.

  • hi i was getting same error as maximason then changed it to UDP and worked fine

    however is there anyway of making it use TCP as it is better?

  • @richy122333 there is, and TCP is much better as it supports garenteed packet delivery (you data will always reach its destination) and allows internet transport. Its different coding to the UDP shown in the video, and its coding that im unaware of im afraid. The video is quite old now, and out of my current knowledge. Im sure googling "TCP winsock vb 6.0" will give some insights :)

  • Doesn't work.

    Run-time error '424':

    Object required.

    Debug says this line has a problem:

    Socket1.SendData MessageOut.

  • does this work with windows 7 and Vb 2008

  • An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

    what does that mean! i get it every time i try to import a box

  • how to run the client in the other pc??

    then connect to a the server in the other pc???

    please post...then use 2 pc...

  • Thanks for your turotial

    What my project is a remote spy (Simular to remote access but rather than it having control features it simply displays the screen of the computer being connected)

    The purpose if for managers being able to see what employees are doing on their computers. (16 screens)

    The script to capute a screenshot has been obtained so using winsock senddata will send the screenshot to the manager watching

    Would I use this same code to connect?

  • @Devilzwishbone2009 that's called a screen recorder/logger... ever heard of hackforums?

  • @superant10000 no, u got a website

  • Not for hacking.

  • The project screen recorder / logger, sounding like you knew of scripts that do this and suggested hack forums.

    Fact is its not a hack

    I hate it when morrons come out with stupid shit like this because it really shows how much of a noob they are.

    Hacking is modifying an existing programme exploiting a weakness for a benefit of the person using the modification

    Me scripting a programme the monitors the activity of staff in a working environment on a LAN not WAN connection is not hacking

  • @superant10000 so Unless your going to contribute towards the question with feasable replies, please stop Spamming youtube.

    The project I have going on is for business pruposes not recreational or "Hacking" as you put it

  • Rofl you're such an idiot. I suggested hackforums to you so you could go get source from there you idiot. Hackforums isn't all about hacking despite the name...

    You could've gone to the programmers section and looked. Or just learn to code and shut the fuck up asking for help on youtube.

    QQ

  • Very Nice Tutorial it helped me very much!

    I use visual basic 2008, but i also have

    vb6. Vb6 its new for me so I im going to try to find the same code for Vb2008.

    Thanks for this tut

  • Me too.

  • what the fuck with the final son aleluya, aleluya!shit on my holly pants you little bastard(joke) 8:11

  • I shit my pants at 8:11..And I'd like to use this on my school, Where we study programming and so on,..How do i make it so everyone get their own username...Like...Making a txtbox witch allowes them to set a username of their choise? "MessageOut = txtuser & txtout" ?

  • @Graize92 yes thats right :) but may want to add a space and a semi colon i.e username.text & ": " & txtmessage.text :)

  • please upload - in microsoft visual 2008

  • FOR ME TOO, PLZZ!! And if it is not, please even for Windows Vista!

  • when i put it on my friends computer i get the error

    where he needs MSWINSCK.OCX but also when we put it on his computer he still get the error

  • Run-time error '40006':

    Wrong protocol or connection state for the requested transaction or request.

    Help, plz???

  • you need to change a property value of the winsock control from "TCP" to "UDP", that should fix it :)

  • HOLY SHIT!!! 8:11

  • help i get license information for this component not found. you do not have an appropriate license to use this functionalitiy in the design environment. when i chosse winsock

  • dame i don't have them and i want to do this so bad is ther onother way to do one or a way to get that controls plz help me

  • Ahhhh! 8:11 Made Me Jump Out Of My Skin! And Then The Marrow Jump Out Of My Bones!

  • @Mykes1001 Same thing with me

  • wtf was that at 8:11 ? lol fuken had my vol maxed..

  • I think he is using an Xbox 360 headset they like to do that when you disconnect them haha

  • And I still get 2 "Data recieved" :( I'm creating a remote so I can control other computers by sending ie "/Open CD" and the persons CD room opens, but it happens 2 times!! :(

    But thanks anyway

  • can you make a tutorial to make this more then just lan its kinda boring just like this ive made a few more stuff to it like renaming the user and stuff like that

  • do u have 2 have the full version of vb6 to get the component because i use a school copy

  • the winsock control component comes with XP as standard, I have heard of some XP's that dont have it. The component has nothing to do with a version of visual basic it is actualy to do with the operating system. The copy used in the video is actualy a student version of visual basic 6.0 from my old college, so its definitly possible :) if you dont have the winsock control on ur PC, you can download it by visiting google and searching "winsock control dll" and dropping it into your registry.

  • its not tht hard to read on HQ

  • Need Help in VB (6,2005,2008)?

    contact me!

  • wew!

    i can connect it now to a other computer

    and now,,,

    i can shutdown different computer using your program,, hhaha...

    when i type the word "shutdown" to the txtbox it will automatically turn off the computer you connect into it.. ^_^

  • anyone know how to make this in c# or vb8?

  • My winshosck won't open.

    It says file cannot open.

    Plz help me

  • Surely if you programed this right and made a active x exe with it you could proberly make software like aim or better yet make a ddoser

  • Seems to be a fair few problems with using this method on MVS2008 unfortunately.. =[

  • weeEee... i made it..

    but i change something on your code.. :)

    thanks 4 this video! :)

    sorry 4 may english grammar T_T

  • can yopu give me a DL link to the MS Winsock control

  • i get Run time error 424

    Object required

  • ive got visual studio 2008 (made the necessary adjustments to your tutorial i think) installed on vista. when i run my application from visual studio via the Play button, i see an error that the class is not registered. i assume this is in regards to the winsock control i have dragged onto my form. how can i drag it if i've not registered it? running my program from an xp box results in the old "send" or "do not send" error right away. i've registered mswinsck.ocx with regsrv32. any ideas?

  • does anyone know why my class is not registered? is it cuz im coding on vista? im able to drag the class onto my toolbox. i added the reference. i've registered it with regsvr32. my compiled app won't run on xp either. any ideas? "ERROR: class not registered" as i run the app in visual studio

  • 6:51 sounds like your saying fuck it one

  • haha it actualy does! I apologise, computing get me a little excited!

  • yeah i get exited when i get programming, i dont blame you

  • i did like in the video and when i run, the windows open i type something and it just doesent happen anything...

    any suggestion

    thank you

    sorry my english

  • ive just made it and it works fine but my computers only seem to send the message to themselves. ive put in the 255.255.255.255 right as well. any help?

  • i get an error wen debugging it highlights this:

    Socket1.SendData MessageOut

  • its likly either that you havnt added the winsock control or more likly that the winsock control you have created has not been named socket1. To solve this, go to your socket in design view, and rename the socket to Socket1. This should fix tthe problem.

  • i have named it Socket1 but it will come up wityh an error saying  a run time error of '10047' and it says: "address family is not supported" then it highlights :

    Socket1.SendData MessageOut

  • this probably means that the winsock control has not been set to "UDP" it is currently set to "TCP" I cant remember the field in the design view, but look for a field value that can be changed to "UDP". This should definitly fix this problem. When im messing around in vb 6.0 it tends to dump the address family back to TCP when the studio is closed for some reason ... it may be worth noting that.

  • i did that

  • 5:35

  • I can't get this to work at all :s. Does my comp need to be connect to a LAN to try it on VB?

  • 08:13 scared the shit out of me! LOL!

  • me too. i wasn't ready

  • i had my speakers up loud, too!

  • thanks for the program , im actually in bridgwater college using it for my computing lessons haha

  • when i type a message my message there come is just alot of ???????????????? what to do?

  • when you type you message in the textbox? If so you may have set it to a password field and changed the password charector to "?", removing the password option and charector by going to the properties of the textbox will fix this. Or is this not the problem you are describing?

  • i fixed it myself but thx anyways i had just typen 1 thing in my coding wrong xD

  • thats usualy the case! Anoying that isnt it :P

  • i got n error for txtout and it said argument not optional