Client Server programming in C# (Chat application)

Поділитися
Вставка
  • Опубліковано 27 сер 2024
  • client server programming in c# chat application
    chat application c#
    tcp ip c#

КОМЕНТАРІ • 64

  • @4bl0xx30
    @4bl0xx30 2 місяці тому

    Thank you for that example. I wrote that program in Visual Studio 2022 (and had to modify it a little bit because it wasn't running out of the box in my case). But with that I had a good starting point. I then modified this program even more to fit my needs and now it doesn't look like it is even related to your example but your example helped me a lot because starting something is really harder for me then reworking some existing thing.

  • @48maliks
    @48maliks 2 роки тому +6

    You have to open the program twice. Then, in the first form select "Server", and "Client" in the second.

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

    Excellent example 👌

  • @nealdorelis5703
    @nealdorelis5703 6 місяців тому +1

    Nice! Do you have a tuto MVC making CRUD in Client-Server in two separate app in C# link to database SqlServer ?

  • @hamagui7120
    @hamagui7120 2 роки тому +9

    not working . it hang at when press start btn. able to provide source code?

  • @B0oMas
    @B0oMas 2 роки тому +33

    Error: Operation not allowed on non-connected Sockets, how to fix it:
    In void connectButton_click after this code line IPEndPoint IpEnd = new IPEndPoint(IPAddress.Parse(ClientIptextBox.Text), int.Parse(ClientPorttextBox.Text));
    add this code line
    client.Connect(IpEnd);

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

      do yo know how can i make it so that instead of clicking the buttons I can just send them using the enter key???

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

      Easy with an Event, with KeyDown if key == Key.Enter and then use the Button Methode

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

      thanks man 😍😍😍😍😍😍😍😍

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

      thanks

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

      THANK YOU

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

    hmm like teamspeak… excellent

  • @Pynesada
    @Pynesada Рік тому +5

    When I click in "START" the app just freeze, someone can help me?

  • @mitchell3088
    @mitchell3088 Рік тому +3

    Amazing, works perfectly for base socket connection. If you're running into trouble make sure you do the additionally code changes mentioned in the comments.

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

    Does this only work for local networks? or also possible for connection through the internet?

    • @jacky2476
      @jacky2476 Рік тому +1

      same question

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

      @@RealSocket Is p2p connection doesn’t need port forwarding? is that practical?🙏🏻

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

    Thanks tutorial 👍

  • @teachcomputer7318
    @teachcomputer7318 6 місяців тому +1

    Dear, it is saying The operation is not allowed on non connected socket. 😢

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

    Hello, Great building of a simple chat. I was wondering if it is possible to add usernames? So that we can see who is who when chatting please?

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

    can i have this program, i have tried but it doesn't work

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

    how can i make so that instead of clicking the buttons I can just send them using the enter key???

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

      GetAsyncKeyState is what you can do to capture keyboard inputs. I learned that from a keylogger tutorial.
      You could also try adding a timer and inside use
      If system.keyboard.keys({enter})
      That's not the exact code so copy and paste won't work but it's something like that. I would use GetAsyncKeyState

  • @engnoor4315
    @engnoor4315 2 роки тому +4

    Where is the source code

  • @testingdemo
    @testingdemo Рік тому +1

    how to get this port number ? is this unique for diffrent diffrent pc?

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

      You can choose and open any from 1 up to 65535 (2 in power of 16 minus 1)

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

    toway communication between two wpf views or application any solution ?

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

    How to do this with two forms like one to join and one to chat

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

    Hello how do I implement microcontroller client using C#

  • @dreamwantstobecoder1534
    @dreamwantstobecoder1534 3 місяці тому

    :((( error "the operation is not allowed on non-connected sockets"

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

    please help me i cant receive the messege "you :......" can you help me

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

    Use mic not music!

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

    Offline or online

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

    when i click start button on server, this program is freeze. can u help me to fix bug ? And i have Error: Operation not allowed on non-connected Sockets in client
    help me sos

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

      @@RealSocket your answer .......... so s*ck. It is no avail

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

      Read the comment of BOomas here. It'll help you a lot. Just leave comment here if you're still struggling to do it. It worked on me.

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

      @@paulinedonor thanks

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

    ?How to send files

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

    Is this working between two laptops...

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

    the softwere pls i need it

  • @edgarrubas4450
    @edgarrubas4450 Рік тому +6

    Waste of my time...

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

    Doesn't Work

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

      Keza bende de öyle Ip adresini bulamıyor

  • @hasana-m9946
    @hasana-m9946 3 роки тому

    ممكن رابط تحميل

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

    Hello how do we split this in 2 programs for server and client

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

      do what he did but different programs and run on a tunnel or Express

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

    Code??

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

    Server form freez and if im try connect form anotcher form "Gniazdo nie jest podłączone" nosz kurwa mać weź

  • @akeditx41
    @akeditx41 3 місяці тому

    My piece of advice is not to make this project it doesn't work