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

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • 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

Komentáře • 117

  • @MarceloCutin
    @MarceloCutin Před rokem +5

    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 Před 3 lety +3

    Excellent ! kindly Keep bringing up more videos . Thanking you

  • @Vitusthe3654
    @Vitusthe3654 Před 10 měsíci +1

    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

  • @user-nl4ry3wb1x
    @user-nl4ry3wb1x Před rokem +1

    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

  • @user-nl4ry3wb1x
    @user-nl4ry3wb1x Před rokem

    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

  • @user-rd2dy4bs4h
    @user-rd2dy4bs4h Před 7 měsíci

    You are incredible! Thank you soooo much for this amazing tutorial!💞

  • @randydejesusmartediaz4203

    Great video
    but one thing the this is not necesary in a private void
    I love you videos and never miss one

  • @robxlift
    @robxlift Před 3 lety +2

    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

  • @MessingWithCode
    @MessingWithCode Před 2 lety

    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 .

  • @evilandgod-leagueoflegends3203

    maybe guide about chat with usernames and private chats with each one of them is it possible to be maded?

    • @igorthelight
      @igorthelight Před 3 lety

      It is possible.
      But use WebSockets or WebRTC instead (those protocols retain connection instead of just sending a message and closing)

  • @bimalsubasinghe7584
    @bimalsubasinghe7584 Před 2 lety

    Thank you so much for the amazing video. Great tutorial....I love it. Thank You Again and again...

  • @esharpdevelopers2944
    @esharpdevelopers2944 Před 2 lety +1

    Thank you so much for the amazing video. ❤ It was very helpful.

    • @tuanpm3005
      @tuanpm3005 Před rokem

      Hello sir, can u show me how to disconnect tcp/ip, please? Thank you a lot

  • @naturalwonders5468
    @naturalwonders5468 Před 3 lety +2

    how can i get the client computer name and put it into listbox together with the ip and port?

  • @pamidrasuryono4897
    @pamidrasuryono4897 Před 3 lety +1

    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

  •  Před 3 lety +4

    you write to yourself, it starts to get weird

  • @Justinthxd
    @Justinthxd Před 3 lety +2

    Thanks, Me salvaste la vida. . .

  • @mortius6895
    @mortius6895 Před rokem +1

    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 Před rokem +1

      yeah pretty garbage tutorial if you ask me xD

    • @Popart-xh2fd
      @Popart-xh2fd Před rokem

      You need to declare the name space with `using SuperSimpleTcp;` at the top.

  • @HomeCockpitSolutions
    @HomeCockpitSolutions Před 3 lety +2

    i dont have .NET in my visual studio. i have .NET Framework and also 4.7.2

    • @foxlearn
      @foxlearn  Před 3 lety

      Not problem, you can use .net framework

  • @YT-bd6jk
    @YT-bd6jk Před rokem

    Great video! i always use your tips.

  • @andriesbakker4861
    @andriesbakker4861 Před 2 lety +1

    Can you only use this for LAN or also web? if Web is possible is there a guide on what to change ?:)

  • @user-mb4nj2tg4f
    @user-mb4nj2tg4f Před 3 lety +2

    Thanks for the beautiful video But I have a question.
    .. What about UDP protocol is it the same as TCP protocol programming

    • @ilovelife-m4t
      @ilovelife-m4t Před 2 lety +1

      u can use sampleupd package for develop

  • @swasanmurali8030
    @swasanmurali8030 Před rokem

    i left it at 7:20 (just a reminder for myself, youtube usually messes it up)

  • @miuni824
    @miuni824 Před 3 lety +4

    can you please make a video about voice channels?

    • @foxlearn
      @foxlearn  Před 3 lety

      You mean? how to create voice??

    • @miuni824
      @miuni824 Před 3 lety

      @@foxlearn how to create a tcp voice channel like voice over ip

  • @abhilabdas9870
    @abhilabdas9870 Před 3 lety

    Very smooth ! Thank you so much

  • @marioandresalcayagalagos1107

    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.

  • @ganaa72001
    @ganaa72001 Před 3 lety

    DataReceivedFromServerEventArgs not found in SuperSimpleTcp 2.4.

  • @aLeXxX2611
    @aLeXxX2611 Před 2 lety +1

    Great video! Could you tell me PLEASE if it works if the server and client are on different networks ?

  • @simcor007
    @simcor007 Před 3 lety

    Great video Fox,

  • @norbikover
    @norbikover Před 3 lety +1

    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  Před 3 lety +2

      same sub network for example client 1 192.168.1.8 client 2 192.168.1.200...

  • @Zheorgyan
    @Zheorgyan Před 3 lety

    Can't connect more than just 1 client to server, dunno what to do

  • @mahfoudbouabdallah6286

    Great video.
    I always use your tips.
    I hope you can make video about how to use signalR on winform and sqlserver

  • @uitsolutions
    @uitsolutions Před 2 lety

    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

  • @flashstore7396
    @flashstore7396 Před rokem

    how we can show username instead IP address in Listbox ?

  • @yigitoner28
    @yigitoner28 Před 2 lety

    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.

  • @ayoforyou448
    @ayoforyou448 Před 3 lety +1

    This is good job Lucy can we have a call please !!

    • @foxlearn
      @foxlearn  Před 3 lety +2

      I think no, it's difficult

    • @ayoforyou448
      @ayoforyou448 Před 3 lety

      @@foxlearn why we have a lot of to do this call !!

  • @aranel_mithrandir
    @aranel_mithrandir Před 3 lety

    Thank you so much

  • @kenhgaming8552
    @kenhgaming8552 Před 2 lety +1

    can you share me the code. My code not work @

  • @nikhilkolli2267
    @nikhilkolli2267 Před 2 lety

    This code used to communicate with one computer to another computer having same lan connection

  • @lucasrodrigues3041
    @lucasrodrigues3041 Před 3 lety +2

    thanks! It works between two different computers?

  • @Life_of_Ruchi
    @Life_of_Ruchi Před 2 lety

    Hii, I have established the connection but it is showing only one sided, communication from both side is not established, what to do

    • @ilovelife-m4t
      @ilovelife-m4t Před 2 lety

      at server btnSend_Click function check lstClinetIP.SelectedItem.ToString() or lstClinetIP.SelectedItems.ToString() if u use SelectedItems , you can't catch the ipport.

  • @markbennett1237
    @markbennett1237 Před 2 lety +2

    In the event handlers, if I know that an invoke is required, I do it like this:
    BeginInvoke(new Action(() =>
    {
    // Code goes here
    }));

  • @gcadmes
    @gcadmes Před 7 měsíci

    1998 called and said to stop using Windows Forms. :-)

  • @arnavgupta8376
    @arnavgupta8376 Před 3 lety

    Do we have a method to put the port and ip itself?

  • @losmejoresdelfutbol7
    @losmejoresdelfutbol7 Před 3 lety

    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 Před 3 lety

      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

  • @miguellouisrivadenera307
    @miguellouisrivadenera307 Před 3 lety +1

    How come can whenever I declare new(txtIP.Text), I get an error.

  • @jacqueschoquette6352
    @jacqueschoquette6352 Před 10 měsíci

    Hi. Is there a way to get the scripts of this program?

  • @maggot008
    @maggot008 Před 3 lety

    Very useful

  • @abrarnasir6585
    @abrarnasir6585 Před rokem

    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 Před rokem

      Just double click on your component (button, timer, gridview etc)

  • @theologemann8461
    @theologemann8461 Před 3 lety

    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  Před 3 lety

      You should set static ip internet, open port

    • @theologemann8461
      @theologemann8461 Před 3 lety +1

      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

  • @user-fq9qe3in3k
    @user-fq9qe3in3k Před 2 lety

    How can i run it on my public ip?

  • @ilovelife-m4t
    @ilovelife-m4t Před 2 lety

    thankyou!

  • @yakov5776
    @yakov5776 Před 3 lety

    What if you allow people to share their screen and it'll share over TCP 🤔

    • @foxlearn
      @foxlearn  Před 3 lety +2

      Thank you for your suggestion. Let me try to research

  • @mmm6231
    @mmm6231 Před 3 lety

    Thanks

  • @prod.thakidd
    @prod.thakidd Před 3 lety

    Is there a way you could give your self a name before connecting if so could you make a video???

    • @wadec3572
      @wadec3572 Před 3 lety

      Add a textbox : name and in the code before send add textboxname.Text

  • @nguyencanh8369
    @nguyencanh8369 Před rokem

    thanks

  • @ralphfm9
    @ralphfm9 Před 3 lety

    thanks a lot

  • @Martin_Peceros
    @Martin_Peceros Před 3 lety

    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 Před 3 lety +1

      click on the ip adress on the list box

    • @kirillbnf5111
      @kirillbnf5111 Před 2 lety

      hey, did you fix this problem?

    • @ilovelife-m4t
      @ilovelife-m4t Před 2 lety

      same problem

    • @ilovelife-m4t
      @ilovelife-m4t Před 2 lety

      at server btnSend_Click function check lstClinetIP.SelectedItem.ToString() or lstClinetIP.SelectedItems.ToString() if u use SelectedItems , you can't catch the ipport.

  • @miguellouisrivadenera307

    Can different computers talk to each other as long as they share the same local Ip?

  • @dongbang6731
    @dongbang6731 Před 2 lety

    for me ask Application of SuperSimple TCP/IP Client Server in fact

  • @ajdegaming7676
    @ajdegaming7676 Před 3 lety +1

    Code?

  • @muhammadusamaashraf3669

    from where can i get code?

  • @jtg4416
    @jtg4416 Před 3 lety

    wouldnt this only work if everybody using the program was on the same network connection

  • @hayelalhazmi1309
    @hayelalhazmi1309 Před 3 lety

    could you please make video about transfer file

    • @foxlearn
      @foxlearn  Před 3 lety +2

      OK. Thank you for your suggestion. Let me try to research

  • @justin23262
    @justin23262 Před 3 lety

    can anyone send me the code?

  • @emr_yasa_
    @emr_yasa_ Před 2 lety

    +1

  • @victorjoaquin4
    @victorjoaquin4 Před 2 lety

    deja las fuentes

  • @NahidHasan-rf1ok
    @NahidHasan-rf1ok Před 3 lety

    Can you please send me the code

  • @aliuysal8297
    @aliuysal8297 Před rokem

    👎

  • @OverAndOverAndOver
    @OverAndOverAndOver Před 3 lety

    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 Před 3 lety +1

      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 Před 2 lety

      @@Laugny İt is doesn't work how can ı solve for this problem

  • @revanmemmedli7921
    @revanmemmedli7921 Před rokem

    {Encoding.UTF8.GetString(e.Data)} error e.Data why?

    • @KevinSofield
      @KevinSofield Před rokem

      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 Před rokem +2

      e.Data.ToArray()

  • @hectorsamuel7975
    @hectorsamuel7975 Před 2 lety

    How can I configure to stop the server?

  • @Celcious
    @Celcious Před 3 lety

    how do I host a server tho?