C# Tutorial - SuperSimple TCP/IP Client Server | FoxLearn

  Рет қаралды 110,674

Fox Learn

Fox Learn

3 жыл бұрын

Chat Program using SuperSimple TCP/IP Client Server in C# .NET Core Windows Forms Application.
Natural Voice Text to Speech: bit.ly/3lvKtpz
Website: foxlearn.com
C# TCP Client Server Application
Sending and Receiving Data Using TCP | C# Networking Tutorial

Пікірлер: 116
@MarceloCutin
@MarceloCutin Жыл бұрын
If for instance anyone got the error "Only one usage of each socket address (protocol/network address/port) is normally permitted"" when trying to start the server, it happens because the port number used in the video is too high. Usually computers have up to port 5000 enabled. This number can be increased by changing a specific Windows registry key value, but it's much more easier if you just use a lower port value. I tried with port 502 and it ran smoothly. Thank for this great tutorial.
@talhatariq5530
@talhatariq5530 3 жыл бұрын
Excellent ! kindly Keep bringing up more videos . Thanking you
@foxlearn
@foxlearn 3 жыл бұрын
Thank you so much !
@abhilabdas9870
@abhilabdas9870 3 жыл бұрын
Very smooth ! Thank you so much
@user-rd2dy4bs4h
@user-rd2dy4bs4h 6 ай бұрын
You are incredible! Thank you soooo much for this amazing tutorial!💞
@esharpdevelopers2944
@esharpdevelopers2944 2 жыл бұрын
Thank you so much for the amazing video. ❤ It was very helpful.
@tuanpm3005
@tuanpm3005 Жыл бұрын
Hello sir, can u show me how to disconnect tcp/ip, please? Thank you a lot
@YT-bd6jk
@YT-bd6jk Жыл бұрын
Great video! i always use your tips.
@bimalsubasinghe7584
@bimalsubasinghe7584 2 жыл бұрын
Thank you so much for the amazing video. Great tutorial....I love it. Thank You Again and again...
@Justinthxd
@Justinthxd 3 жыл бұрын
Thanks, Me salvaste la vida. . .
@simcor007
@simcor007 3 жыл бұрын
Great video Fox,
@foxlearn
@foxlearn 3 жыл бұрын
Thank you !
@aranel_mithrandir
@aranel_mithrandir 3 жыл бұрын
Thank you so much
@user-nl4ry3wb1x
@user-nl4ry3wb1x Жыл бұрын
0:11 noted that Windows Form App(.NET) and Windows Form App(.NET Framework) are quite different in this video , we choose Windows Form App(.NET) 0:29 We change Target framework to .NET 5.0 to use the new features of C#9 1:10 manage nudge package and install supersimpletcp 1:43 rebulid 9:00 noted that server.Events.ClientConnected += please press tab button on the keyboard you guys can play 9:27 ~ 9:28 by x0.25 you can see (Press TAB to insert) 11:19 server端的Send 13:03 13:49 - 13:51 detail 18:39 if you get the same error as me,you can use the invoke method to solve the problem\\\ 18:59 the MethodInvoker 20:58 開始實作 並且 成功 記得一定要選中 一個 IP 21:18 detail you must select an IP in the list first , then you can send message. 22:13 connect multiple clients
@robxlift
@robxlift 3 жыл бұрын
To make a chat app via internet as a windoes application C# what should I do ?? i have 2 application work local as server and client , i need make sever form on pc , and client form on another pc what should i do , i only know tcp / ip
@user-nl4ry3wb1x
@user-nl4ry3wb1x Жыл бұрын
9:00 noted that server.Events.ClientConnected += please press tab button on the keyboard you guys can play 9:27 ~ 9:28 by x0.25 you can see (Press TAB to insert) 13:49 - 13:51 detail
@naturalwonders5468
@naturalwonders5468 3 жыл бұрын
how can i get the client computer name and put it into listbox together with the ip and port?
@adamkim163
@adamkim163 2 жыл бұрын
thankyou!
@Vitusthe3654
@Vitusthe3654 9 ай бұрын
How can I connect two computers in my network? It only works on my computer not with any other... i don't know which ip i have to use if i want to connect my computers. May anyone canhelp me. Thanks
@pamidrasuryono4897
@pamidrasuryono4897 3 жыл бұрын
Great Video Did both server and client need to run App that build using Supper simple Nuget I has hardware that already has TCP server build in and need to build App that send command as client did this method will work? Thanks
@mmm6231
@mmm6231 3 жыл бұрын
Thanks
@marioandresalcayagalagos1107
@marioandresalcayagalagos1107 3 жыл бұрын
how could I detect a specific message in the txtInfo and send that same message to a serial port example.: detect the message "Hello" and send it as text to a serial port.
@andriesbakker4861
@andriesbakker4861 2 жыл бұрын
Can you only use this for LAN or also web? if Web is possible is there a guide on what to change ?:)
@nguyencanh8369
@nguyencanh8369 Жыл бұрын
thanks
@maggot008
@maggot008 3 жыл бұрын
Very useful
@foxlearn
@foxlearn 3 жыл бұрын
Thank you so much !
@umerjaved1000
@umerjaved1000 2 жыл бұрын
Great ! it help me a lot i want to add time of client to join server and leaving the server can you help regarding this scenario
@yigitoner28
@yigitoner28 2 жыл бұрын
hello fox , I really thank you for this video But I have a problem : When I type my own ipv4 address , it cannot see another client device or android client server . Even though I open the firewall many times , the problem still persists . I have reached you by mail, I ask for your help.
@ralphfm9
@ralphfm9 3 жыл бұрын
thanks a lot
@foxlearn
@foxlearn 3 жыл бұрын
You’re welcome
@randydejesusmartediaz4203
@randydejesusmartediaz4203 3 жыл бұрын
Great video but one thing the this is not necesary in a private void I love you videos and never miss one
@foxlearn
@foxlearn 3 жыл бұрын
Thank you so much !
@user-mb4nj2tg4f
@user-mb4nj2tg4f 3 жыл бұрын
Thanks for the beautiful video But I have a question. .. What about UDP protocol is it the same as TCP protocol programming
@adamkim163
@adamkim163 2 жыл бұрын
u can use sampleupd package for develop
@arnavgupta8376
@arnavgupta8376 2 жыл бұрын
Do we have a method to put the port and ip itself?
@mahfoudbouabdallah6286
@mahfoudbouabdallah6286 2 жыл бұрын
Great video. I always use your tips. I hope you can make video about how to use signalR on winform and sqlserver
@evilandgod-leagueoflegends3203
@evilandgod-leagueoflegends3203 3 жыл бұрын
maybe guide about chat with usernames and private chats with each one of them is it possible to be maded?
@igorthelight
@igorthelight 2 жыл бұрын
It is possible. But use WebSockets or WebRTC instead (those protocols retain connection instead of just sending a message and closing)
@ganaa72001
@ganaa72001 2 жыл бұрын
DataReceivedFromServerEventArgs not found in SuperSimpleTcp 2.4.
@losmejoresdelfutbol7
@losmejoresdelfutbol7 2 жыл бұрын
Does someone know how to set a delimiter in SuperSimple TCP? I'm trying to send different strings separately on a for loop, but at the received event I got only one string with all together.
@Laugny
@Laugny 2 жыл бұрын
Ok so maybe after each string try to flush it if this doesnt work then send one string like so: string xy = "text1:text2:text3:text4" Then on client side just filter the text like so: string text1= xy.Split(':')[0]; The 0 is for the first index before ":" and then 1 would be for text 2 and so on
@aLeXxX2611
@aLeXxX2611 2 жыл бұрын
Great video! Could you tell me PLEASE if it works if the server and client are on different networks ?
@yigitoner28
@yigitoner28 2 жыл бұрын
Doesn't work brother
@flashstore7396
@flashstore7396 Жыл бұрын
how we can show username instead IP address in Listbox ?
@hectorsamuel7975
@hectorsamuel7975 2 жыл бұрын
How can I configure to stop the server?
@Zheorgyan
@Zheorgyan 2 жыл бұрын
Can't connect more than just 1 client to server, dunno what to do
3 жыл бұрын
you write to yourself, it starts to get weird
@norbikover
@norbikover 3 жыл бұрын
Is it possible to replicate an app like hamachi , so that to pc.s enter the same lan?(the 2 pc.s are on diff networks)
@foxlearn
@foxlearn 3 жыл бұрын
same sub network for example client 1 192.168.1.8 client 2 192.168.1.200...
@nikhilkolli2267
@nikhilkolli2267 2 жыл бұрын
This code used to communicate with one computer to another computer having same lan connection
@abrarnasir6585
@abrarnasir6585 Жыл бұрын
Hi. I'm new to visual studio. How do you auto generate event without having to manually type to create it? For example Events_ClientConnected. Also, is the auto generate events available in visual studio 2010? I used 2010 due to faster IDE loading 😅
@josemanuelgomez901
@josemanuelgomez901 Жыл бұрын
Just double click on your component (button, timer, gridview etc)
@lucasrodrigues3041
@lucasrodrigues3041 3 жыл бұрын
thanks! It works between two different computers?
@foxlearn
@foxlearn 3 жыл бұрын
Yes
@lucasrodrigues3041
@lucasrodrigues3041 3 жыл бұрын
@@foxlearn thank you!! it is very nice
@user-fq9qe3in3k
@user-fq9qe3in3k Жыл бұрын
How can i run it on my public ip?
@Celcious
@Celcious 2 жыл бұрын
how do I host a server tho?
@kenhgaming8552
@kenhgaming8552 2 жыл бұрын
can you share me the code. My code not work @
@swasanmurali8030
@swasanmurali8030 11 ай бұрын
i left it at 7:20 (just a reminder for myself, youtube usually messes it up)
@MessingWithCode
@MessingWithCode 2 жыл бұрын
sorry but we are very ungreatfull , i dont understand why you have that small amount of likes , when you have such a nice video , well , i just loved your video , keep on please .
@mortius6895
@mortius6895 Жыл бұрын
Unfortunatley for me when trying this I just get errors all over the place. Not sure why. Errors like "The type or namespace name 'ClientConnectedEventArgs' does not exist in the namespace 'SuperSimpleTcp' (are you missing an assembly reference?)" and "Non-nullable field 'server' must contain a non-null value when exiting constructor. Consider declaring the field as nullable." plus a bunch of others. By 9:08 time mark I already have 3 errors.
@CreatingAlong
@CreatingAlong Жыл бұрын
yeah pretty garbage tutorial if you ask me xD
@Popart-xh2fd
@Popart-xh2fd Жыл бұрын
You need to declare the name space with `using SuperSimpleTcp;` at the top.
@miuni824
@miuni824 3 жыл бұрын
can you please make a video about voice channels?
@foxlearn
@foxlearn 3 жыл бұрын
You mean? how to create voice??
@miuni824
@miuni824 3 жыл бұрын
@@foxlearn how to create a tcp voice channel like voice over ip
@muhammadusamaashraf3669
@muhammadusamaashraf3669 2 жыл бұрын
from where can i get code?
@HomeCockpitSolutions
@HomeCockpitSolutions 3 жыл бұрын
i dont have .NET in my visual studio. i have .NET Framework and also 4.7.2
@foxlearn
@foxlearn 3 жыл бұрын
Not problem, you can use .net framework
@jacqueschoquette6352
@jacqueschoquette6352 9 ай бұрын
Hi. Is there a way to get the scripts of this program?
@emr_yasa_
@emr_yasa_ 2 жыл бұрын
+1
@prod.thakidd
@prod.thakidd 3 жыл бұрын
Is there a way you could give your self a name before connecting if so could you make a video???
@wadec3572
@wadec3572 3 жыл бұрын
Add a textbox : name and in the code before send add textboxname.Text
@miguellouisrivadenera307
@miguellouisrivadenera307 3 жыл бұрын
Can different computers talk to each other as long as they share the same local Ip?
@theologemann8461
@theologemann8461 3 жыл бұрын
I think no
@foxlearn
@foxlearn 3 жыл бұрын
Yes, You can work via Network
@yakov5776
@yakov5776 3 жыл бұрын
What if you allow people to share their screen and it'll share over TCP 🤔
@foxlearn
@foxlearn 3 жыл бұрын
Thank you for your suggestion. Let me try to research
@ajdegaming7676
@ajdegaming7676 3 жыл бұрын
Code?
@justin23262
@justin23262 3 жыл бұрын
can anyone send me the code?
@gcadmes
@gcadmes 6 ай бұрын
1998 called and said to stop using Windows Forms. :-)
@Life_of_Ruchi
@Life_of_Ruchi 2 жыл бұрын
Hii, I have established the connection but it is showing only one sided, communication from both side is not established, what to do
@adamkim163
@adamkim163 2 жыл бұрын
at server btnSend_Click function check lstClinetIP.SelectedItem.ToString() or lstClinetIP.SelectedItems.ToString() if u use SelectedItems , you can't catch the ipport.
@ayoforyou448
@ayoforyou448 3 жыл бұрын
This is good job Lucy can we have a call please !!
@foxlearn
@foxlearn 3 жыл бұрын
I think no, it's difficult
@ayoforyou448
@ayoforyou448 3 жыл бұрын
@@foxlearn why we have a lot of to do this call !!
@theologemann8461
@theologemann8461 3 жыл бұрын
How to use it without a local ip? Because I want to use it with the internet and not with computers in the same network
@foxlearn
@foxlearn 3 жыл бұрын
You should set static ip internet, open port
@theologemann8461
@theologemann8461 3 жыл бұрын
can you please make a tutorial? Im dumb and all tutorials i readed didnt work so please make a tutorial. And i hope all of you understanding me im not good in english because im from german
@miguellouisrivadenera307
@miguellouisrivadenera307 3 жыл бұрын
How come can whenever I declare new(txtIP.Text), I get an error.
@miguellouisrivadenera307
@miguellouisrivadenera307 3 жыл бұрын
This for the TCP client
@editprousama
@editprousama 3 жыл бұрын
same errror
@foxlearn
@foxlearn 3 жыл бұрын
You should enter your local ip. for example your ip 192.168.7.9 you can use cmd, then run ipconfig/all to see your ip network address
@user-ue3tb6oo5r
@user-ue3tb6oo5r 3 жыл бұрын
@@foxlearn ㅠㅠ...how fix it...
@hamzaitsolutions9603
@hamzaitsolutions9603 3 жыл бұрын
same error . any one can help
@hayelalhazmi1309
@hayelalhazmi1309 3 жыл бұрын
could you please make video about transfer file
@foxlearn
@foxlearn 3 жыл бұрын
OK. Thank you for your suggestion. Let me try to research
@dongbang6731
@dongbang6731 2 жыл бұрын
for me ask Application of SuperSimple TCP/IP Client Server in fact
@markbennett1237
@markbennett1237 Жыл бұрын
In the event handlers, if I know that an invoke is required, I do it like this: BeginInvoke(new Action(() => { // Code goes here }));
@Martin_Peceros
@Martin_Peceros 3 жыл бұрын
Nice video, but i have one problem. I can´t send data from the server to client; it doesn´t make a error, but the word just don´t send. If you can help me pliz.
@wadec3572
@wadec3572 3 жыл бұрын
click on the ip adress on the list box
@kirillbnf5111
@kirillbnf5111 2 жыл бұрын
hey, did you fix this problem?
@adamkim163
@adamkim163 2 жыл бұрын
same problem
@adamkim163
@adamkim163 2 жыл бұрын
at server btnSend_Click function check lstClinetIP.SelectedItem.ToString() or lstClinetIP.SelectedItems.ToString() if u use SelectedItems , you can't catch the ipport.
@jtg4416
@jtg4416 3 жыл бұрын
wouldnt this only work if everybody using the program was on the same network connection
@victorjoaquin4
@victorjoaquin4 2 жыл бұрын
deja las fuentes
@NahidHasan-rf1ok
@NahidHasan-rf1ok 3 жыл бұрын
Can you please send me the code
@aliuysal8297
@aliuysal8297 Жыл бұрын
👎
@OverAndOverAndOver
@OverAndOverAndOver 3 жыл бұрын
When doing port forwarding and connecting to another machine, I get the code: "No connection could be made because the target machine actively refused it. [:ffff: 127.0.0.1]:9000. This is not the address I have in the box, but it fails to connect. What is this?
@Laugny
@Laugny 2 жыл бұрын
So you get the error when commectig as a client to the server? If yes just allow firewall ok the server side for the connection
@yigitoner28
@yigitoner28 2 жыл бұрын
@@Laugny İt is doesn't work how can ı solve for this problem
@revanmemmedli7921
@revanmemmedli7921 Жыл бұрын
{Encoding.UTF8.GetString(e.Data)} error e.Data why?
@KevinSofield
@KevinSofield Жыл бұрын
try using private void Events_DataReceived(object sender, DataReceivedEventArgs e) { this.Invoke((MethodInvoker)delegate { txtInfo.Text += $"Server: {Encoding.UTF8.GetString(e.Data.Array, 0, e.Data.Count)}{Environment.NewLine}"; }); }
@flashstore7396
@flashstore7396 Жыл бұрын
e.Data.ToArray()
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37
Cat Corn?! 🙀 #cat #cute #catlover
00:54
Stocat
Рет қаралды 15 МЛН
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 5 МЛН
C# Tutorial -  TCP/IP Client Server | FoxLearn
10:12
Fox Learn
Рет қаралды 394 М.
How To Create a Chat App and Server Tutorial WPF C#
55:29
Payload
Рет қаралды 64 М.
TCP/IP Server & Client Communication - C# Programming
14:10
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 87 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 328 М.
Why I Chose Rust Over Zig
33:18
ThePrimeTime
Рет қаралды 8 М.
TCP Socket Tutorial (C#, Visual Studio, Networked Console Apps)
16:24
wolfs cry games
Рет қаралды 56 М.
What is a Protocol? (Deepdive)
18:14
LiveOverflow
Рет қаралды 161 М.
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37