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

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

КОМЕНТАРІ • 116

  • @user-rd2dy4bs4h
    @user-rd2dy4bs4h 7 місяців тому

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

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

    Excellent ! kindly Keep bringing up more videos . Thanking you

    • @foxlearn
      @foxlearn  3 роки тому +2

      Thank you so much !

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

    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 !

  • @robxlift
    @robxlift 3 роки тому +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

  • @evilandgod-leagueoflegends3203
    @evilandgod-leagueoflegends3203 3 роки тому +4

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

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

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

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

    Very smooth ! Thank you so much

  • @miuni824
    @miuni824 3 роки тому +4

    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

  • @naturalwonders5468
    @naturalwonders5468 3 роки тому +2

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

  • @Justinthxd
    @Justinthxd 3 роки тому +2

    Thanks, Me salvaste la vida. . .

  • @HomeCockpitSolutions
    @HomeCockpitSolutions 3 роки тому +2

    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

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

    Great video Fox,

  • @lucasrodrigues3041
    @lucasrodrigues3041 3 роки тому +2

    thanks! It works between two different computers?

  • @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.

  • @norbikover
    @norbikover 3 роки тому +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  3 роки тому +2

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

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

    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 роки тому +1

      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

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

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

    • @foxlearn
      @foxlearn  3 роки тому +2

      I think no, it's difficult

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

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

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

    Very useful

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

      Thank you so much !

  • @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 роки тому +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

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

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

    • @foxlearn
      @foxlearn  3 роки тому +2

      Thank you for your suggestion. Let me try to research

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

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

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

    thanks a lot

  • @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

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

    could you please make video about transfer file

    • @foxlearn
      @foxlearn  3 роки тому +2

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

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

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

  • @NahidHasan-rf1ok
    @NahidHasan-rf1ok 3 роки тому

    Can you please send me the code

  • @gcadmes
    @gcadmes 7 місяців тому

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

  • @jacqueschoquette6352
    @jacqueschoquette6352 10 місяців тому

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

  • @Vitusthe3654
    @Vitusthe3654 10 місяців тому +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

  • @swasanmurali8030
    @swasanmurali8030 Рік тому

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

  • @user-nl4ry3wb1x
    @user-nl4ry3wb1x Рік тому +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 Рік тому

    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

  • @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)

  • @nguyencanh8369
    @nguyencanh8369 Рік тому

    thanks

  • @aliuysal8297
    @aliuysal8297 Рік тому

    👎

  • @flashstore7396
    @flashstore7396 Рік тому

    how we can show username instead IP address in Listbox ?

  • @MarceloCutin
    @MarceloCutin Рік тому +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.

  • @YT-bd6jk
    @YT-bd6jk Рік тому

    Great video! i always use your tips.

  • @mortius6895
    @mortius6895 Рік тому +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 Рік тому +1

      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.

  • @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 Рік тому +2

      e.Data.ToArray()

  • @user-fq9qe3in3k
    @user-fq9qe3in3k Рік тому

    How can i run it on my public ip?

  • @markbennett1237
    @markbennett1237 2 роки тому +2

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

  • @andriesbakker4861
    @andriesbakker4861 2 роки тому +1

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

  • @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.

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

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

  • @ilovelife-m4t
    @ilovelife-m4t 2 роки тому

    thankyou!

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

    deja las fuentes

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

    ua-cam.com/video/Tyxs0taM9oE/v-deo.html

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

    How can I configure to stop the server?

  • @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

    • @ilovelife-m4t
      @ilovelife-m4t 2 роки тому

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

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

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

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

    +1

  • @esharpdevelopers2944
    @esharpdevelopers2944 2 роки тому +1

    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

  • @aLeXxX2611
    @aLeXxX2611 2 роки тому +1

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

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

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

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

    from where can i get code?

  • @uitsolutions
    @uitsolutions 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

  • @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 .

  • @kenhgaming8552
    @kenhgaming8552 2 роки тому +1

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

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

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

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

    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 3 роки тому

      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

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

    how do I host a server tho?

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

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

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

    DataReceivedFromServerEventArgs not found in SuperSimpleTcp 2.4.

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

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

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

    fox learn tnx
    I need run my app on windows server , but his not suport 5.0 framework
    what can do ?

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

    Thanks

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

    can anyone send me the code?

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

    Thank you so much

  • @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 3 роки тому +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 2 роки тому

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

  • @user-mb4nj2tg4f
    @user-mb4nj2tg4f 3 роки тому +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 2 роки тому +1

      u can use sampleupd package for develop

  • @pamidrasuryono4897
    @pamidrasuryono4897 3 роки тому +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

  •  3 роки тому +4

    you write to yourself, it starts to get weird

  • @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 роки тому +1

      click on the ip adress on the list box

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

      hey, did you fix this problem?

    • @ilovelife-m4t
      @ilovelife-m4t 2 роки тому

      same problem

    • @ilovelife-m4t
      @ilovelife-m4t 2 роки тому

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

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

    Code?