VB.NET Tutorial - Client / Server Network Programming - Simple Chat Application

Поділитися
Вставка
  • Опубліковано 5 жов 2024

КОМЕНТАРІ • 379

  • @mikebledig7208
    @mikebledig7208 3 роки тому +3

    This really is a good Tutorial. The server and client really do work. If they don't for you, it's because you doing something wrong. For a beginner into this stuff, it's really good! Thank you very much dude! Also like the way you speak. very clear and precise.
    Please could we have a continuation of this project, say like a part 2 where we can make it a simple by-directional chatting client, or where by the server can accept more then 1 connection.
    Although many seem to think that C# is better then vb, I still believe that vb can still create many good programs.
    Once again, thank you for this video

  • @kenlinasobirionwu5776
    @kenlinasobirionwu5776 5 років тому +2

    for anyone wondering this still works as of 2019 truly a timeless tutorial

    • @kenlinasobirionwu5776
      @kenlinasobirionwu5776 5 років тому

      It actually glad to know u are still around 😀 and thanks for the heart I guess u have a new sub now 😂

    • @radughita1992
      @radughita1992 4 роки тому

      For me it does not, using VB 2019, says it does not recognise TCPControl

    • @kenlinasobirionwu5776
      @kenlinasobirionwu5776 4 роки тому

      @@radughita1992 are u using visual studio 2017?
      Also I swear it's "Controller" not control

    • @radughita1992
      @radughita1992 4 роки тому

      @@kenlinasobirionwu5776 Thanks, I fixed that but now when I run it (I copied the tutorial to a teeth) it gives an error, points to "Server.Start()" and saying "System.Net.Sockets.SocketException The request address is not valid in its context.". Help pls.

    • @kenlinasobirionwu5776
      @kenlinasobirionwu5776 4 роки тому

      @@radughita1992 ohh I know what u did u got the wrong up or host number
      I found online a line if code that gets one automatically I'll send it to u when I have time

  • @rowanlidbury
    @rowanlidbury 8 років тому +1

    This is great, tweaked it for .NET Micro Framework. Even a few useful bonus topics thrown in for good measure!

  • @sanfordhoffman2392
    @sanfordhoffman2392 9 років тому

    That was just awesome. I'm very new to programming. It's a good example of how other network services like SQL handle a connection from a client. I can make use of existing services but to actually create a service that will accept incoming data was just the coolest thing I've seen so far. Thanks for the tutorial. I'm a new fan.

  • @clintonpopp2404
    @clintonpopp2404 10 років тому

    Outstanding Work !!! Finally a VB tutorial in English and one that actually works well with proper procedures. Kudos Brother !!!

  • @OMcsTwosComplement
    @OMcsTwosComplement 10 років тому

    Great tutorial! I’m glad you multithreaded properly using delegates instead of disabling the check for illegal cross threads like so many other tutorials on youtube :)

    • @VBToolbox
      @VBToolbox  10 років тому

      Many thanks, good sir. :-D I still made a few flubs on that video, especially talking about the loop-lag and thread sleeping. Seems it had to do with the blocking check with the Server.Pending. Not sure if it's really necessary to use that. I think if you remove it, the loop may not eat so much CPU.

  • @karolyvisky6273
    @karolyvisky6273 4 роки тому

    Nagyon jó videó. Megírtam a modulokat az útmutatások alapján és sok mindent megértettem... Ha Budapesten élnél jó lennél nálam egy üveg finom pálinkára...

  • @pratimasingh1258
    @pratimasingh1258 5 років тому

    Rarely we get to see such useful videos ! Big Thanks ❤❤

  • @BitSec
    @BitSec 10 років тому

    Woow Wow dude Amazing tutorial you can just sit back type everything you type cuz its not going to fast and you can Hear everything you say.
    Best tutorial i found on the internet about TCP :)

    • @VBToolbox
      @VBToolbox  10 років тому

      I appreciate the great feedback, Ramon. :-D Very happy that it's been helpful to you.

    • @carlferguson2517
      @carlferguson2517 10 років тому

      VB Toolbox I agree! Great TCP video! Looking forward to watching more of your tutorials.

    • @VBToolbox
      @VBToolbox  10 років тому

      Thanks, Ramon! I'm glad that it was helpful to you. :-D Hopefully, when things slow down at work I will be able to make some more.

    • @BitSec
      @BitSec 10 років тому

      VB Toolbox Well i subbed so when new videos are released i will be the first one to watch it :)

  • @BitmasterXor
    @BitmasterXor 10 років тому +7

    VB Toolbox I would just like to say that I've been coding with sockets for quite some time, and I must say out of every tutorial I have ever looked at or viewed on the web, Yours is by far the most "Human Understandable" I'm a Delphi Programmer I'm not used to messing with .net Sockets you See i use what are called "INDY" sockets they are a very popular collection of "Blocking Sockets" they work in .net as well but usually they are used for C++, Delphi, and Unix based systems.
    Ill be subscribing to you :) However I would also like to give you some feedback / request for future video if you have time perhaps you could show us how to properly code a Multi-Client Server Socket system AKA server that accepts multiple clients and is able to keep up with them individually and utilize socket polling of some sort to detect when a client has disconnected and remove them from the active connections list.
    I can do all of this in C++ and Delphi but man when it comes to this .net stuff I feel like Microsoft really screwed us over by removing easy accessible VCL components such as the Winsock component. I mean used to I could make a socket application in 5 seconds literally but now we have to suffer and write like 20 - 30 lines of code just to get a server going. upsets me sometimes.
    If you could recommend any good .net socket wrappers or socket VCL components plz send them my way :)
    TY TY SO MUCH! for the tutorial :)

    • @VBToolbox
      @VBToolbox  10 років тому

      Wow! Thank you much for the positive feedback, TheBitmasterXor. A friend of mine has been working on an awesome multi-client C# project which should have exactly what you're looking for, and much more.
      I've been hoping to do a translation of it for VB.NET but my increased workload has been crushing me so I haven't had a chance to do much of anything on the tutorials front. :-(
      I really hope that I can get to this soon. Hang in there! :-)

    • @BitmasterXor
      @BitmasterXor 10 років тому

      VB Toolbox No problem VB Toolbox, and take your time I'm in no rush, I have a Multi-client Project successfully coded in "Delphi" and i'm currently working on getting VB.net to successfully connect and communicate with it. The protocol I have desinged is Command ("string") based the server has its own command handlers and is able to feed data back to any client-socket after they request information. I have designed a "queuing" system so the server can not possibly ever become overburdened by the number of incoming requests. I'm looking to expand this project so that any programming language that supports raw sockets can communicate with my server. :)

  • @maggotDTV
    @maggotDTV 8 років тому

    Id like to see an updated one that continues this project. Add more features such as reading and being able to chat back and forth with a group of people.
    Thanks so much for this either way!

  • @HartgerVisserRiel
    @HartgerVisserRiel 10 років тому

    Nice! Keeps is simple compared to all geeks trying to stuff it with as many variations as possible...

  • @TheJessejunior
    @TheJessejunior 5 років тому +2

    man, this was good! it´s a pitty you´ve stoped! thank you anyway!

    • @VBToolbox
      @VBToolbox  5 років тому +1

      Jessé Junior I still hold out hope of rekindling the channel. Hopefully, Starlink will be able to bring me back online in a year or two. Hopefully, I will have a computer and electricity by then, as well! 😆

    • @TheJessejunior
      @TheJessejunior 5 років тому

      let´s hope! until there enjoy the stillness hehe

  • @SunilKurhade1
    @SunilKurhade1 3 роки тому +1

    very good help to novice user !

  • @markteal1212
    @markteal1212 9 років тому

    loved the video its very helpful to me learning how to do these things on vb.net after Microsoft pretty much doing away with vb6 im having to relearn new steps to do the things I already new how to do before

  • @Ejioplex
    @Ejioplex 4 роки тому

    Thank you so much. this tutorial really started me into network programing.

  • @Vysse666
    @Vysse666 10 років тому

    Good tutorial one thing that works much simpler than using keydown is to use the forms AcceptButton property.

  • @ervinehinay1682
    @ervinehinay1682 10 років тому +1

    thanks bro i haven't tried it myself yet but i'm sure this really help's a lot..nice tutorial look's like you're really a great programmer!!thanks again keep it up..

    • @VBToolbox
      @VBToolbox  10 років тому

      Thanks, Ervine! I hope it helps out. :-D

  • @bvrider1
    @bvrider1 8 років тому +1

    Worked well!! Keep up the good work I appreciate all your videos.

  • @tomgeorge9248
    @tomgeorge9248 3 роки тому +1

    This simplified a lot of understanding for me. Thanks. By the way - Have you expanded on it any? Is there a Part two?

  • @patrickjohnocampo839
    @patrickjohnocampo839 10 років тому

    Just wow.! A very clear and nice tutorial two thumbs up for you bro. I hope bro. you can update this tutorial. I suggest make an application like Internet cafe timer e.g: adding time, auto lock screen when the times up, etc. :)). Many many thanks to you.

  • @philliberatore4265
    @philliberatore4265 7 років тому

    Thank you for a very basic and simple explanation and network connections. I have been trying to do this for quite some time and everything else I found on the Internet only got me confused.
    Very good introduction. You might wanna make the font in your programming larger. It is difficult to read on a small screen.

  • @technomech303
    @technomech303 4 роки тому +1

    Beautiful... thank you so much for sharing.

  • @TheChinobi23
    @TheChinobi23 5 років тому

    Nice video, this made me realize how much i love python

  • @camillusblockx2577
    @camillusblockx2577 10 років тому

    Excellent tutorial, worked flawlessly. I'm gonna try to alter the code to use it for sending arrays of elements (string, integer, boolean) back and forth to 1 server and max 4 clients. Gonna be not simple so if you have any info of tutorials and/or books that goes about sending arrays over TcpIp then please let me know. Hope you keep up doing this, looking forward to your future work.

    • @VBToolbox
      @VBToolbox  10 років тому

      Hello, Camillus! A friend of mine and I are presently working on producing a much more advanced multi-client/server TCP library for just such a system. It allows us to send any sort of custom packet type. So far we've created a functional IRC (Internet Relay Chat) system, and have experimented with sending files as byte segments.
      I'm not yet certain how I would go about making a tutorial, as it's pretty large and much more complex, and I'm not certain if I should actually show how the library is created or just show how to use it.

    • @camillusblockx2577
      @camillusblockx2577 10 років тому

      VB Toolbox I would love to see it, is it availlable? Maybe just give some info about how the fuctioncalls work. I'm not a expert in programming, but if I can test it and work with it, then anyone can.
      Looking forward to use your software.

  • @LakshmanThilakaratne
    @LakshmanThilakaratne 10 років тому

    Very good explanation. I tried this successfully. Thanks very much.. Keep up the good work..

  • @BlueJay20014
    @BlueJay20014 10 років тому +1

    Help... For the code, It says Server.Start() was not handled. Plz help!

  • @jaredrojas5786
    @jaredrojas5786 9 років тому +4

    ¡Really, really, really thanks, dude!
    ¡Your awesome!

  • @zarqawi121
    @zarqawi121 10 років тому +1

    Fantastic Tutorial! Thanks man! This Channel helps me so much!

    • @VBToolbox
      @VBToolbox  10 років тому

      Excellent, Abdurahman! :-) Thank you for the positive feedback. I'm happy to know that it's been helpful.

  • @blackoiltank
    @blackoiltank 4 роки тому

    Thanks alot dude for amazing video tutorial that you Made.

  • @ahmadhussainwebshare1001
    @ahmadhussainwebshare1001 4 роки тому

    Thanks Bro . Very helpful tutorial God bless you.

  • @danyalmathers9146
    @danyalmathers9146 9 років тому +6

    nice tutorial god bless you

  • @preecharouyprsert2864
    @preecharouyprsert2864 3 роки тому

    Thanks so much.
    That's good as I wanted.

  • @Mindrust2
    @Mindrust2 10 років тому

    How do you allow 2 clients to connect to the same server and let them both send messages? This vid has helped me well this far.

    • @VBToolbox
      @VBToolbox  10 років тому

      I'm actually working on such a project, now. I'm not sure how I'll go about making a tutorial for it as it's pretty complex.
      We've created a multifunctional TCP library that can be used in numerous applications to send/receive variable packet types.
      At present, it's a sort of IRC client/server app. Right now, I can do multiple client connections with full chat relay, including private messaging. Hopefully, I'll have something I can share soon, but I have a lot of improvements to make.

  • @rickallenmagbanua2819
    @rickallenmagbanua2819 7 років тому +1

    Job well done. I'd to ask ,would you teach me how to connect all the clients into the server? I have 4 clients and 1 server. Thanks.

  • @_rafael_assis
    @_rafael_assis 8 років тому +1

    Thank you so much, you´re a angel , omg, i was searching for it for a long time, omg, thanks thanks THANKS!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @MW3inat0r
    @MW3inat0r 10 років тому

    oh thanks man! this channel helps me so much! you are so a nice programmer :) never close this channel please :D

    • @VBToolbox
      @VBToolbox  10 років тому

      So glad that it's been helpful, MW3inat0r! Hopefully, things will settle down at work so that I can share more goodies. I appreciate the positive feedback. :-D

  • @marcelbochra7559
    @marcelbochra7559 9 років тому +1

    very very good video only would ask about adding a textbox to client

  • @suhaibyahya117
    @suhaibyahya117 9 років тому +1

    thank's for your help man .appreciate it.

  • @philt9555
    @philt9555 10 років тому +2

    Thank u for the tutorial. However, I'm getting error at Server.Start():
    System.Net.Sockets.SocketException was unhandled
    ErrorCode=10049
    Message="The requested address is not valid in its context"
    I thought I typed everything per tutorial. Did I miss something?

    • @yotoprules9361
      @yotoprules9361 5 років тому

      same thing here. I downloaded the source code and even the pre-built file does not work

  • @saturninramirez1107
    @saturninramirez1107 3 роки тому +1

    Merci Beaucoup

  • @jasonlundeen5031
    @jasonlundeen5031 9 років тому

    this works perfect and I got some great ideas you might like on this man ;)

  • @facepalmzzz
    @facepalmzzz 9 років тому +2

    i have trouble with Server.Start()
    it says
    An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
    Additional information: The requested address is not valid in its context
    also i hove trouble with
    Client = New TcpClient(Host, Port)

    • @Srlancelot39
      @Srlancelot39 8 років тому +2

      The IP address you set is probably incorrect. Run cmd.exe, then type ipconfig/all and look for your IPv4 address.

  • @sarinkumarpatle660
    @sarinkumarpatle660 8 років тому

    thank you Sir it Help me more real time projects

  • @agustintambo6701
    @agustintambo6701 5 років тому

    nice tutorial. but I have one question, Which is difference between socket and api rest.? which is better ?

  • @barttender
    @barttender 9 років тому

    You are my hero! Thank you so much!

  • @FusionDeveloper
    @FusionDeveloper 6 років тому

    Thanks, but it is much more logical, to have the end result, have the "Client" and "Server" combined into 1 window or at least in the way that the window you type messages in, is also the window you can read the messages, like all chat programs ever created do. If there isn't a way to do this, then a workaround could be for the message to get pushed back to the Clients and appear in another multiline textbox. I am thinking you split them up, so that the code could be studied independently.

  • @maslaxabas1993
    @maslaxabas1993 9 років тому

    thank you for making this sweet video thank you again

  • @kevins1738
    @kevins1738 7 років тому

    You the man! This is pretty good man!

  • @michaelsathekge3262
    @michaelsathekge3262 9 років тому

    Hi, I have to write code in sockets and I'm a complete beginner... I went through the vid and it was a great introduction. But I think I'm not understanding the basics of sockets programming. I have an application API that I want to interface with and really struggling to get up and running... help?

  • @yashsomani2007
    @yashsomani2007 7 років тому

    Hey VB Toolbox, what a wonderful tutorial. Learnt everything soo perfectly.
    My Question is can i assign names to the clients and in the server form in the txtChat, can i show something like :
    ClientName1 : TheMessage
    Can i? Please tell me how. Reply asap. Thanks again :)

  • @zeyadahmed5731
    @zeyadahmed5731 8 років тому

    Thanks it is awesome project +vb toolbox

  • @Malc2169
    @Malc2169 6 років тому

    Excellent tutorial, made simple and easy to understand. I (think I) typed it word for word, and all went well BUT (there's always a but) I can only send one line - all subsequent attempts to send a line of text fail to update the textbox on the server side. Any ideas?

  • @dwiputralim5615
    @dwiputralim5615 10 років тому

    VB Toolbox, hello, i'm still a newbie for this VB. I was told to learn Socket Programming using this VB. But i dont know where i should start. May you show me where should i start to learn this VB for my socket programming. Thanks a lot.

  • @rakeshreddy2623
    @rakeshreddy2623 4 роки тому

    dude thank you for your solutions actually i am a plc programmer and also works on vb applications for data store and retrive
    my question is what if multi clients connected in this at the same time
    in my case i have two similar machines they both work simultaneously and sends the data to the server but there will be a lot of chances that they connect to the server at the same time instant
    in this video you have said that "im using single client only"
    also for taking the data you have used handler which get the data to text box what if user wants to return back some acknoledgement to client form ui, is there any special process for that like "thread-delegate-custom event"

  • @ALPAworx
    @ALPAworx 8 років тому

    thank you for your tutorial :)
    i try to make a serverbased chat with more users and rooms (later i hope with live vioce)

  • @null0737
    @null0737 8 років тому

    Amazing Video and VB Toolbox....:D Very helpful to me

  • @arunbm123
    @arunbm123 9 років тому +2

    Nice Tutorial...Thumbs Up..Can u please tell me what changes required to deploy on Public IP?

    • @VBToolbox
      @VBToolbox  9 років тому

      arunbm123 Mainly, you just need to make sure that your Firewall and NAT/Port Forwarding are configured to allow and send traffic to your computer from your public IP - assuming that it is being a firewall and/or router.

    • @arunbm123
      @arunbm123 9 років тому

      I have another problem...I have Host A which is connected to router....I want to make A as Telnet Server...I want to access this Telnet Server from remote Telnet Client...How do I configure Port Forwarding cuz when I do port forwarding for port 23...the router says Telnet port will be assigned 2323

    • @krisswastakentoo
      @krisswastakentoo 6 років тому

      you must have a 4 numbers port

  • @shanukrubera3792
    @shanukrubera3792 8 років тому

    Hey man, great tutorial! What do you suggest I do in order to create a chat application like this to both send and receive from this application?

  • @davidvazquez9523
    @davidvazquez9523 9 років тому

    very good job, but I have a cuestion, if I want to add more textbox for different information? what do I have do?
    for example. textbox1 in the client app send information to the textbox1 in the server app, if I want to add a second textbox and send information from textbox2 in the client app to the txtbox2 in the server app

    • @KisrDeveloper
      @KisrDeveloper 9 років тому

      turn on brain! it's easy! I must to ask you something, what you want to be in future?

  • @amritajannu5362
    @amritajannu5362 7 років тому

    Really nice tutorial helped me a lot. But i am just curious to know how do i respond from server to client? Could you help me with that?

  • @1995mavie
    @1995mavie 10 років тому

    thank you a lot glade to learn from you

  • @adlersongs4460
    @adlersongs4460 6 років тому

    Thanks for posting this video. It was really very helpful. However I have one query. Is it possible to display a custom windows form on all client computers? I want to create two forms say form1 and form2. On click of a button on form1 I want to display form2 to selected client PC's on the same network.

  • @thomasedison2651
    @thomasedison2651 6 років тому +1

    i followed everything as u did but it is getting connected but the message is not sent or received plz help me regarding this issue

  • @TiborCsicsatka
    @TiborCsicsatka 4 роки тому

    Great Tutorial, I copied all the code and ran it under Visual Studio 2017 Most of it works the same as in the tutorial except it will not transfer data to the server. The problem seems to be in the server program, I put an MsgBox on the catch of the RaiseEvent section and it said System.NullReferenceException:Object reference not set to an instance of an object. I wonder if you or anyone else would suggest a solution. Thanks.

  • @seymurguliyev3453
    @seymurguliyev3453 6 років тому

    Thank you for this tutorial

  • @Thebobfactor
    @Thebobfactor 9 років тому

    Great video. Thank you!

  • @geetanjaligupta8179
    @geetanjaligupta8179 7 років тому

    Hello VB Toolbox,
    Thanks for this nice programme. using your programme we could able to send controlling commands to our instrument but we are facing some problems when we are trying to read the data sent by the same instrument. Can you please let us know how to do that or how to receive data in client part using threading.
    TIA

  • @JamesKulwicki
    @JamesKulwicki 8 років тому

    VB Toolbox great video. Can you demonstrate how to do multi clients please?

  • @GaryHutsonVBA
    @GaryHutsonVBA 10 років тому

    Fantastic Tutorial! Thanks

  • @PlayNRip
    @PlayNRip 9 років тому

    Thanks. I learned a lot from this.

  • @tutubingbulaklak
    @tutubingbulaklak 8 років тому +3

    VB Toolbox thank you for this tutorial, I followed your tutorial and was able to create client/server application. As you mentioned in the video, this is for simple client/server app. Are you able to direct me on how I can have multiple clients connecting to the server. At the moment in my program, multiple clients can connect to the server but the server can only respond to one client, the other clients connected is on a hang state.

    • @kennethsantianez7175
      @kennethsantianez7175 8 років тому

      +James Bryan Boniquit
      did you got any answer to these?.

    • @tutubingbulaklak
      @tutubingbulaklak 8 років тому

      +kenneth santianez Nope. But i was able to apply a workaround.

    • @kennethsantianez7175
      @kennethsantianez7175 8 років тому +1

      may i know what is that alternative solution, coz i am working on my project. thanks for your help

    • @ThrillaGamesChannel
      @ThrillaGamesChannel 6 років тому +1

      Can you please tell me the workaround as I'm stuck. Thanks

    • @rakeshreddy2623
      @rakeshreddy2623 4 роки тому

      No i have tried the same application with multiple clients by deleting thread.sleep its working

  • @boikz2708
    @boikz2708 8 років тому

    Great video!
    Is there a chance you create a tutorial for hosting for multiple clients with using port forwarding of your router? :)

  • @lalo19851
    @lalo19851 9 років тому

    Hello. Great video. 1 Issue, when I send data from a client, it doesn't show on my textbox until I disconnect the client. I'm puzzled by this. any help? thanks.

  • @knotsman18
    @knotsman18 10 років тому

    What would be the process of turning this into a multi-client chat and/or allow all the chat text inputs be sent out and displayed to each of the other clients (i.e. you can see what everyone is chatting in each of the clients)?

    • @VBToolbox
      @VBToolbox  10 років тому

      We'll want to use asynchronous connection management and a means of creating and managing custom packets and events. A friend of mine has been developing a really cool library (dll) to take much of the pain out of this process, and I've been translating it into VB.NET. I hope to do a spotlight video on this soon. We intend to release the library soon, along with our sample project. :-)

  • @astersixteen8199
    @astersixteen8199 7 років тому

    Sir what if you have form full of text box and copy all inputs in that form from client then send all the input entry into the server
    How to do it? is it the same ?

  • @mwinn2009
    @mwinn2009 10 років тому

    Do you have an example of sending and receiving data from a unix box, I have some butchered code that works...sorta
    I can send the first test to the unix box and get a response, as long as there was no error i can send the second test and so on. If the first test has any error, the second test will fail. An example of the proper way to accomplish something like this would be great.
    Thanks
    MW

  • @kevnar
    @kevnar 7 років тому

    I recognize that voice. :-D Didn't know you had a new channel.

    • @VBToolbox
      @VBToolbox  7 років тому

      Heya, Kevnar! You found me! AHHH! lol Yeah, I wanted to branch out into stuff that wasn't so gp-centric. I figured that general education would be a bit more productive in terms of viewership. I'm still sad to have abandoned my game channel... I always wanted to revisit it, focusing on MonoGame, but with significant time constraints in the real world, I can barely manage either anymore.

    • @kevnar
      @kevnar 7 років тому

      VB is not the best platform for developing games. I'm finding that out now. Just built an A-star function on a randomly generated island map, and I'm getting frame rates of like 2 fps on a 50x 50 map window. That's without even animating the entities to follow the path it found. It was an interesting exercise in how to get such things working, but practically speaking, it's never going to work. Threading might help a bit, but I haven't looked into that enough.

    • @VBToolbox
      @VBToolbox  7 років тому +1

      Hmmm... Sounds like you may still be using GDI+. If so, it's not so much a VB problem as a graphics framework problem. GDI is extraordinarily inefficient as it relies entirely on CPU and neglects to utilize the power of the GPU. It can definitely be beefed up a bit with proper timing or threading, and can work great for simplistic games, but it's still very bad in general. :-)
      Using a good graphics/game framework [i.e., XNA, MonoGame, etc.] in VB, I've seen FPS easily in the high thousands, though I generally lock it in at 60fps with VSYNC.
      A friend of mine did a small A* pathfinding project in VB.NET/XNA and it was very smooth and there was no noticeable drop in frame rate.

    • @welp3768
      @welp3768 7 років тому

      VBToolbox Is there somewhere I can find a COMPLETLY beginner MonoGame tutorial? Most already assume I know XNA, which, sadly, I don't :c

  • @jdholasca
    @jdholasca 9 років тому

    Very helpful thank you, i have some question here do you have any code that send "files"?

  • @timflinn3890
    @timflinn3890 2 роки тому

    Very good tutorial. I am getting a Null error when closing the Client App. It only happens when no connection is made between both apps, if I connect and close the client it works fine. Everything works great but I am trying to solve this error.
    Private Sub Form1_FormClosing
    >> If Client.Client.Connected = True Then

  • @Grandus11
    @Grandus11 4 роки тому

    is it possible to use this to connect more than one device at a time and have data coming in from different devices??

  • @pbrown4
    @pbrown4 10 років тому

    great tutorial..would one be able to implement this into a 2 player game online via server connection?
    eg. a card game, where pic boxes 1-4 are visible to player 1 only..and picboxes 5-8 only visible to player 2?

  • @FusionDeveloper
    @FusionDeveloper 6 років тому

    I combined these into 1 program and think I made the IP/Port work with textboxes, but I have 1 issue. If I try to connect to an IP that it can't connect to, or let's say I think the connection is down so i disconnect and reconnect, it doesn't allow you to reconnect. I feel like there is likely some code you can do that lets you "reconnect" or "change connection IP" after attempting to connect once. I've tried everything I could think of and now I'm asking for help. I am hoping it is something very simple. Anyone with ideas or solutions will be greatly appreciated.

  • @mohamedshafeer2788
    @mohamedshafeer2788 10 років тому

    Thank You Sir!!!
    It is helping me a lot.
    I have a doubt also. Here we started a server. Suppose I have an IP & Port It is started already. It is a Pabx IP Phone port . here i am reading the port to make the call register it is in a Loop. Instead i can make a Event like message received?

    • @VBToolbox
      @VBToolbox  10 років тому

      Hello, Mohamed. :-)
      Yes, you can make the Listener event based and asynchronous, and that is actually the recommended way to do it. Each connection will open in its own thread. Unfortunately, it's also much more complex, and that is why I did not do that for this tutorial.
      I am hopeful that I will soon be able to share a library and source for this.

    • @mohamedshafeer2788
      @mohamedshafeer2788 10 років тому

      VB Toolbox Thanks for the reply Sir. I don't know how to do it. I tried it by loop.It is working fine. But it is consuming more CPU usage.

  • @PinoyEinstein
    @PinoyEinstein 5 років тому

    What is wrong with this: "An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
    Additional information: The requested address is not valid in its context"

  • @omega1007
    @omega1007 6 років тому

    Copied the code exactly but did not work. Not sure if it's a version error.

  • @hc5104
    @hc5104 5 років тому

    nice tutorial i like this, thank you for your time.

  • @Xshot12
    @Xshot12 7 років тому

    Let's say 2 people are using the same internet connect AKA LAN... How can I make it so they can chat with each other?? Please help I'm trying to make a multiplayer game and this would make it a lot easier. Don't ask how Just Please Help!

  • @revampednerowatts4716
    @revampednerowatts4716 9 років тому

    how about.. to retrieve the data to the server using the "client" do u have any video of it?
    by the way tutorial is nice

  • @dylanobrien462
    @dylanobrien462 3 місяці тому

    It doesn't seems to be working for me the client says connected but the text never makes it to the server i also tried downloading the code files here and they were exactly the same where the text when away but never ended up at the server

  • @RGfReakz
    @RGfReakz 9 років тому

    Hii... Its cool.
    Can we add video chatting and speech to text in this application?

  • @FelixMoBu
    @FelixMoBu 4 роки тому

    my server recieves the messages only while closing the clients form. what did i wrong?

  • @elhinchiammar825
    @elhinchiammar825 4 роки тому

    thnx a lot for this amazing tuto i have a problem in client : evry ting is ok i have no error but when i tape a text and click the send button, the text dont appear in server textbox can you help me please. thnx again

  • @ivan4794
    @ivan4794 9 років тому

    what if add a textbox on the client form to fill ip destination, you can the make the tutorials? thanks a lot

  • @kiprussel3983
    @kiprussel3983 7 років тому

    can i start sending files thru server's PC using this codes? I'm working on my capstone and I'm new to network programming

  • @luxman5083
    @luxman5083 8 років тому

    Hi, This is really brilliant. thank you

  • @welp3768
    @welp3768 7 років тому

    I want the server to run as a console application, what should I do about the UpdateText and OnLineReceived textbox codes?

  • @GabeDStudios
    @GabeDStudios 8 років тому

    So what if i want this to be public? by that i mean multiple people being able to chat? what do i do?

  • @stukyCZ
    @stukyCZ 9 років тому

    For every one who has problem. When you type in cmd "ipconfig / all" without the quotes. Shows you your IP address and search the "IPv4 address"
    and change it with the original IP in project. Sorry for my english :)

  • @daanielacosta2395
    @daanielacosta2395 5 років тому

    What can i do, if i want to make an android app, to send and receive messages from a desktop application made in VB, but using the web as intermediary?. VB app Web Android app