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 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.
@@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
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.
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 :)
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.
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...
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 :)
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 :)
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! :-)
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. :)
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!
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! 😆
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
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..
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.
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.
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.
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.
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.
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.
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
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?
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)
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.
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?
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 :)
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?
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.
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"
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.
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
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
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.
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.
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
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.
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.
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)?
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. :-)
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 ?
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
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.
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.
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.
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
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?
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.
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?
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.
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"
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!
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
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
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 :)
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
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
for anyone wondering this still works as of 2019 truly a timeless tutorial
It actually glad to know u are still around 😀 and thanks for the heart I guess u have a new sub now 😂
For me it does not, using VB 2019, says it does not recognise TCPControl
@@radughita1992 are u using visual studio 2017?
Also I swear it's "Controller" not control
@@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.
@@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
This is great, tweaked it for .NET Micro Framework. Even a few useful bonus topics thrown in for good measure!
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.
Outstanding Work !!! Finally a VB tutorial in English and one that actually works well with proper procedures. Kudos Brother !!!
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 :)
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.
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...
Rarely we get to see such useful videos ! Big Thanks ❤❤
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 :)
I appreciate the great feedback, Ramon. :-D Very happy that it's been helpful to you.
VB Toolbox I agree! Great TCP video! Looking forward to watching more of your tutorials.
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.
VB Toolbox Well i subbed so when new videos are released i will be the first one to watch it :)
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 :)
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! :-)
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. :)
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!
Nice! Keeps is simple compared to all geeks trying to stuff it with as many variations as possible...
man, this was good! it´s a pitty you´ve stoped! thank you anyway!
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! 😆
let´s hope! until there enjoy the stillness hehe
very good help to novice user !
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
Mark Teal
Thank you so much. this tutorial really started me into network programing.
Good tutorial one thing that works much simpler than using keydown is to use the forms AcceptButton property.
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..
Thanks, Ervine! I hope it helps out. :-D
Worked well!! Keep up the good work I appreciate all your videos.
This simplified a lot of understanding for me. Thanks. By the way - Have you expanded on it any? Is there a Part two?
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.
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.
Beautiful... thank you so much for sharing.
Nice video, this made me realize how much i love python
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.
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.
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.
Very good explanation. I tried this successfully. Thanks very much.. Keep up the good work..
Help... For the code, It says Server.Start() was not handled. Plz help!
¡Really, really, really thanks, dude!
¡Your awesome!
Fantastic Tutorial! Thanks man! This Channel helps me so much!
Excellent, Abdurahman! :-) Thank you for the positive feedback. I'm happy to know that it's been helpful.
Thanks alot dude for amazing video tutorial that you Made.
Thanks Bro . Very helpful tutorial God bless you.
nice tutorial god bless you
😂 you seem to be so desperate
Thanks so much.
That's good as I wanted.
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.
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.
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.
Thank you so much, you´re a angel , omg, i was searching for it for a long time, omg, thanks thanks THANKS!!!!!!!!!!!!!!!!!!!!!!!!!!
oh thanks man! this channel helps me so much! you are so a nice programmer :) never close this channel please :D
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
very very good video only would ask about adding a textbox to client
thank's for your help man .appreciate it.
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?
same thing here. I downloaded the source code and even the pre-built file does not work
Merci Beaucoup
this works perfect and I got some great ideas you might like on this man ;)
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)
The IP address you set is probably incorrect. Run cmd.exe, then type ipconfig/all and look for your IPv4 address.
thank you Sir it Help me more real time projects
nice tutorial. but I have one question, Which is difference between socket and api rest.? which is better ?
You are my hero! Thank you so much!
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.
thank you for making this sweet video thank you again
You the man! This is pretty good man!
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?
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 :)
Thanks it is awesome project +vb toolbox
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?
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.
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"
thank you for your tutorial :)
i try to make a serverbased chat with more users and rooms (later i hope with live vioce)
Amazing Video and VB Toolbox....:D Very helpful to me
Nice Tutorial...Thumbs Up..Can u please tell me what changes required to deploy on Public IP?
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.
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
you must have a 4 numbers port
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?
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
turn on brain! it's easy! I must to ask you something, what you want to be in future?
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?
thank you a lot glade to learn from you
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.
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
same issue on my end
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.
Thank you for this tutorial
Great video. Thank you!
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
VB Toolbox great video. Can you demonstrate how to do multi clients please?
Fantastic Tutorial! Thanks
Thanks. I learned a lot from this.
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.
+James Bryan Boniquit
did you got any answer to these?.
+kenneth santianez Nope. But i was able to apply a workaround.
may i know what is that alternative solution, coz i am working on my project. thanks for your help
Can you please tell me the workaround as I'm stuck. Thanks
No i have tried the same application with multiple clients by deleting thread.sleep its working
Great video!
Is there a chance you create a tutorial for hosting for multiple clients with using port forwarding of your router? :)
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.
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)?
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. :-)
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 ?
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
I recognize that voice. :-D Didn't know you had a new channel.
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.
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.
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.
VBToolbox Is there somewhere I can find a COMPLETLY beginner MonoGame tutorial? Most already assume I know XNA, which, sadly, I don't :c
Very helpful thank you, i have some question here do you have any code that send "files"?
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
is it possible to use this to connect more than one device at a time and have data coming in from different devices??
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?
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.
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?
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.
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.
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"
Copied the code exactly but did not work. Not sure if it's a version error.
nice tutorial i like this, thank you for your time.
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!
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
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
Hii... Its cool.
Can we add video chatting and speech to text in this application?
my server recieves the messages only while closing the clients form. what did i wrong?
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
what if add a textbox on the client form to fill ip destination, you can the make the tutorials? thanks a lot
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
Hi, This is really brilliant. thank you
I want the server to run as a console application, what should I do about the UpdateText and OnLineReceived textbox codes?
So what if i want this to be public? by that i mean multiple people being able to chat? what do i do?
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 :)
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