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.
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);
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.
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
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
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.
You have to open the program twice. Then, in the first form select "Server", and "Client" in the second.
Excellent example 👌
Nice! Do you have a tuto MVC making CRUD in Client-Server in two separate app in C# link to database SqlServer ?
not working . it hang at when press start btn. able to provide source code?
same
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);
do yo know how can i make it so that instead of clicking the buttons I can just send them using the enter key???
Easy with an Event, with KeyDown if key == Key.Enter and then use the Button Methode
thanks man 😍😍😍😍😍😍😍😍
thanks
THANK YOU
hmm like teamspeak… excellent
When I click in "START" the app just freeze, someone can help me?
Same problem here
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.
Where are these comments?
where'
Does this only work for local networks? or also possible for connection through the internet?
same question
@@RealSocket Is p2p connection doesn’t need port forwarding? is that practical?🙏🏻
Thanks tutorial 👍
npc
Dear, it is saying The operation is not allowed on non connected socket. 😢
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?
can i have this program, i have tried but it doesn't work
how can i make so that instead of clicking the buttons I can just send them using the enter key???
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
Where is the source code
how to get this port number ? is this unique for diffrent diffrent pc?
You can choose and open any from 1 up to 65535 (2 in power of 16 minus 1)
toway communication between two wpf views or application any solution ?
How to do this with two forms like one to join and one to chat
Hello how do I implement microcontroller client using C#
:((( error "the operation is not allowed on non-connected sockets"
same
@@markneiltanap maybe clip wrong, it has something between 18:13 and 18:14
please help me i cant receive the messege "you :......" can you help me
Use mic not music!
Offline or online
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
@@RealSocket your answer .......... so s*ck. It is no avail
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.
@@paulinedonor thanks
?How to send files
Is this working between two laptops...
yes, but only in the same network
the softwere pls i need it
Waste of my time...
Doesn't Work
Keza bende de öyle Ip adresini bulamıyor
ممكن رابط تحميل
Hello how do we split this in 2 programs for server and client
do what he did but different programs and run on a tunnel or Express
Code??
Server form freez and if im try connect form anotcher form "Gniazdo nie jest podłączone" nosz kurwa mać weź
My piece of advice is not to make this project it doesn't work