How to put example 153.32.53.121
into
Private _IpEndPoint as new IPEndPoint()??
the arguments inside as System.net.ipaddress...i put it 153.32.53.121
inside and got an error
Printable View
How to put example 153.32.53.121
into
Private _IpEndPoint as new IPEndPoint()??
the arguments inside as System.net.ipaddress...i put it 153.32.53.121
inside and got an error
VB Code:
Dim ie As New Net.IPEndPoint(Net.IPAddress.Parse("153.32.53.121", Port))
Why is it that I cant send data over..even though I have connected?
Dim Buffer() As Byte = System.Text.ASCIIEncoding.ASCII.GetBytes(ClientMessageTextBox.Text)
_ClientSocket.Send(Buffer, 0, Buffer.Length, SocketFlags.None)
Hi.
I'm really not the right person to answer network related questions...Sorry. :cry:
But from the looks of it, I'd say that your send is just fine. I suspect that it's the server not listening, or not reacting correctly.
Try searching MSDN, I believe there's an example of how to make a simple chat program.
I'm sorry I can't be of more help, but I'm sure there are others here who can.
Good Luck.
Why is it that I cant send data over..even though I have connected?
Dim Buffer() As Byte = System.Text.ASCIIEncoding.ASCII.GetBytes(ClientMessageTextBox.Text)
_ClientSocket.Send(Buffer, 0, Buffer.Length, SocketFlags.None)
eh...you know how to send a simple character over to the server
Hi.
Not in details. Sorry.
But I believe I know the principle of it.
When you connect to the server, the TCPListener creates a TCPClient object. Then you add eventhandlers to it to catch DataRecieved or similiar events.
Then an event will be raised in the server whenever you send data to it.
So I think your send function is ok. I think you just haven't created the TCPObject in the server, so the server isn't really listening.
I will try to find that chat sample and post a link.
Hi.
I found that sample.
http://msdn.microsoft.com/library/de...et08282001.asp
There's a lot in there that you probably don't need, but you should focus on establishing the connection, and see how they add handlers (or whatever it is they're doing) to make the server respond to incomming data.
I hope this helps you.
okie...thanks
but now I have to send a character to the server.
the server is not me...so the configuration is not the same....
i;m the client part
Ohh. In that case I'm afraid I'm stumped.
As far as I can see your send function should be ok. The only other thing I can think of, is that you might be connected to the wrong port or maybe not connected at all?!?
Sorry.