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

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

ความคิดเห็น • 118

  • @MarceloCutin
    @MarceloCutin 2 ปีที่แล้ว +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.

  • @Vitusthe3654
    @Vitusthe3654 ปีที่แล้ว +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

  • @薇季芬
    @薇季芬 ปีที่แล้ว +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

  • @talhatariq5530
    @talhatariq5530 4 ปีที่แล้ว +4

    Excellent ! kindly Keep bringing up more videos . Thanking you

    • @foxlearn
      @foxlearn  4 ปีที่แล้ว +2

      Thank you so much !

  • @mortius6895
    @mortius6895 2 ปีที่แล้ว +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.

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

  • @根本花里子
    @根本花里子 11 หลายเดือนก่อน

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

  • @薇季芬
    @薇季芬 ปีที่แล้ว

    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 ปีที่แล้ว +2

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

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

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

  • @kovernorbi
    @kovernorbi 4 ปีที่แล้ว +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  4 ปีที่แล้ว +2

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

  • @atakansenyurt
    @atakansenyurt 4 ปีที่แล้ว +2

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

    • @foxlearn
      @foxlearn  4 ปีที่แล้ว

      Not problem, you can use .net framework

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

  • @randydejesusmartediaz4203
    @randydejesusmartediaz4203 4 ปีที่แล้ว +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  4 ปีที่แล้ว

      Thank you so much !

  • @ganaa72001
    @ganaa72001 3 ปีที่แล้ว

    DataReceivedFromServerEventArgs not found in SuperSimpleTcp 2.4.

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

  • @miguellouisrivadenera307
    @miguellouisrivadenera307 4 ปีที่แล้ว +1

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

    • @miguellouisrivadenera307
      @miguellouisrivadenera307 4 ปีที่แล้ว

      This for the TCP client

    • @editprousama
      @editprousama 4 ปีที่แล้ว

      same errror

    • @foxlearn
      @foxlearn  4 ปีที่แล้ว +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

    • @김모씨-w6r
      @김모씨-w6r 4 ปีที่แล้ว

      @@foxlearn ㅠㅠ...how fix it...

    • @hamzaitsolutions9603
      @hamzaitsolutions9603 4 ปีที่แล้ว

      same error . any one can help

  • @اسامةالجميلي-ه4م
    @اسامةالجميلي-ه4م 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

  • @esharpdevelopers2944
    @esharpdevelopers2944 2 ปีที่แล้ว +1

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

    • @tuanpm3005
      @tuanpm3005 2 ปีที่แล้ว

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

  •  3 ปีที่แล้ว +4

    you write to yourself, it starts to get weird

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

  • @YT-bd6jk
    @YT-bd6jk 2 ปีที่แล้ว

    Great video! i always use your tips.

  • @lucasrodrigues3041
    @lucasrodrigues3041 4 ปีที่แล้ว +2

    thanks! It works between two different computers?

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

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

  • @MessingWithCode
    @MessingWithCode 3 ปีที่แล้ว

    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 .

  • @Zheorgyan
    @Zheorgyan 3 ปีที่แล้ว

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

  • @miuni824
    @miuni824 4 ปีที่แล้ว +4

    can you please make a video about voice channels?

    • @foxlearn
      @foxlearn  4 ปีที่แล้ว

      You mean? how to create voice??

    • @miuni824
      @miuni824 4 ปีที่แล้ว

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

  • @bimalsubasinghe7584
    @bimalsubasinghe7584 2 ปีที่แล้ว

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

  • @swasanmurali8030
    @swasanmurali8030 ปีที่แล้ว

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

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

  • @simcor007
    @simcor007 4 ปีที่แล้ว

    Great video Fox,

    • @foxlearn
      @foxlearn  4 ปีที่แล้ว

      Thank you !

  • @abhilabdas9870
    @abhilabdas9870 3 ปีที่แล้ว

    Very smooth ! Thank you so much

  • @arnavgupta8376
    @arnavgupta8376 3 ปีที่แล้ว

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

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

  • @jacqueschoquette6352
    @jacqueschoquette6352 ปีที่แล้ว

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

  • @kenhgaming8552
    @kenhgaming8552 3 ปีที่แล้ว +1

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

  • @aLeXxX2611
    @aLeXxX2611 3 ปีที่แล้ว +1

    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

  • @samuxz04
    @samuxz04 2 ปีที่แล้ว

    How can I configure to stop the server?

  • @yakov5776
    @yakov5776 4 ปีที่แล้ว

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

    • @foxlearn
      @foxlearn  4 ปีที่แล้ว +2

      Thank you for your suggestion. Let me try to research

  • @theologemann8461
    @theologemann8461 4 ปีที่แล้ว

    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  4 ปีที่แล้ว

      You should set static ip internet, open port

    • @theologemann8461
      @theologemann8461 4 ปีที่แล้ว +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

  • @miguellouisrivadenera307
    @miguellouisrivadenera307 4 ปีที่แล้ว

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

  • @Justinthxd
    @Justinthxd 3 ปีที่แล้ว +2

    Thanks, Me salvaste la vida. . .

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

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

  • @prod.thakidd
    @prod.thakidd 4 ปีที่แล้ว

    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

  • @uitsolutions
    @uitsolutions 3 ปีที่แล้ว

    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

  • @muhammadusamaashraf3669
    @muhammadusamaashraf3669 3 ปีที่แล้ว

    from where can i get code?

  • @nikhilkolli2267
    @nikhilkolli2267 2 ปีที่แล้ว

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

  • @ajdegaming7676
    @ajdegaming7676 3 ปีที่แล้ว +1

    Code?

  • @jtg4416
    @jtg4416 4 ปีที่แล้ว

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

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

  • @aranel_mithrandir
    @aranel_mithrandir 3 ปีที่แล้ว

    Thank you so much

  • @hayelalhazmi1309
    @hayelalhazmi1309 4 ปีที่แล้ว

    could you please make video about transfer file

    • @foxlearn
      @foxlearn  4 ปีที่แล้ว +2

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

  • @ayoforyou448
    @ayoforyou448 4 ปีที่แล้ว +1

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

    • @foxlearn
      @foxlearn  4 ปีที่แล้ว +2

      I think no, it's difficult

    • @ayoforyou448
      @ayoforyou448 4 ปีที่แล้ว

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

  • @justin23262
    @justin23262 3 ปีที่แล้ว

    can anyone send me the code?

  • @dongbang6731
    @dongbang6731 3 ปีที่แล้ว

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

  • @maggot008
    @maggot008 4 ปีที่แล้ว

    Very useful

    • @foxlearn
      @foxlearn  4 ปีที่แล้ว

      Thank you so much !

  • @nguyencanh8369
    @nguyencanh8369 ปีที่แล้ว

    thanks

  • @revanmemmedli7921
    @revanmemmedli7921 2 ปีที่แล้ว

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

    • @KevinSofield
      @KevinSofield 2 ปีที่แล้ว

      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 ปีที่แล้ว +2

      e.Data.ToArray()

  • @ilovelife-m4t
    @ilovelife-m4t 2 ปีที่แล้ว

    thankyou!

  • @mmm6231
    @mmm6231 3 ปีที่แล้ว

    Thanks

  • @ralphfm9
    @ralphfm9 3 ปีที่แล้ว

    thanks a lot

    • @foxlearn
      @foxlearn  3 ปีที่แล้ว

      You’re welcome

  • @victorjoaquin4
    @victorjoaquin4 2 ปีที่แล้ว

    deja las fuentes

  • @NahidHasan-rf1ok
    @NahidHasan-rf1ok 4 ปีที่แล้ว

    Can you please send me the code

  • @gcadmes
    @gcadmes 11 หลายเดือนก่อน

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

    • @ATTAQUER_04
      @ATTAQUER_04 หลายเดือนก่อน

      And who else?

  • @emr_yasa_
    @emr_yasa_ 2 ปีที่แล้ว

    +1

  • @aliuysal8297
    @aliuysal8297 ปีที่แล้ว

    👎

  • @flashstore7396
    @flashstore7396 2 ปีที่แล้ว

    how we can show username instead IP address in Listbox ?

  • @Петр-ф8п
    @Петр-ф8п 2 ปีที่แล้ว

    How can i run it on my public ip?