 |
 |
 |
 |
| there is problem with my browser or the formatting is bad ??
|
|
 |
| |
 |
| | i want to be able to send string data to and from the client and server.. like a mini messanger =] can you plz assist me or show me how msn: 32bit@gunbound.net |
|
 |
| | The tutorial allready clearly explains that... |
|
 |
| can you help me
when i make a double click on Microsoft Winsock Control 6.0 component, it gave me an alert message saying: you don't have a license to use this activeX control |
|
 |
| | Multiple clients cannot get ack |
|
 |
| | i cannot figure this out, when i press cntrl + t it takes me to the right place i guess but their is no winsock, i have tried and tried to get it but cant find it except on microsoft.com and even then once i have it and try to use it i get the error message, "The file was not registerable as an activeX component" anybody know what i should do or where to go? thx and also i tried to as it as a resource but that didnt work either, even tho it is a .dll file, ugh! |
|
 |
| | Really wonderful piece of information for a beginner. I strongly recommend this for all vb programmers |
|
 |
| | Hi. I like very much the tutorial I got an addtional learning from it. thanks a lot. But I need help on how to deny an access to the server if user id is already connected. What I mean is if the user id is already connected, it should not be duplicated in the servers' list of connected users or can not used user id that is already connected. Any help for me. Please e-mail me vanix_09@yahoo.com and thanks a lot. |
|
 |
| beautiful, exactly what i needed to get started with network programming! thank you very much!
-Lyle |
|
 |
| | connection forcefully rejected, what happen when multipple client connected |
|
 |
| Absoloutely fantastic tutorial for beginners. Great job, nice work on writing it.
*Goes back to google to sort his problem out =[*
Nice work :P
|
|
 |
| | Since data transfer and receive is so fast, how would I know weither I've done with all transactions outside of sub socket event module before I close the connection |
|
 |
| Cant use this code in VB2005 :-(
Get lots of errors, first of all in the sock_connectionrequest procedure
if Sock.State = sckListening then.....
This returns an error: 'State' is a type in 'AxMSWinsockLib.AxWinsock' and cannot be used as an expression.
|
|
 |
| David:
Nice work. Very simple and easy to follow.
Now I need to find a multi threaded server example(or multi process)
Great help. Thanks. |
|
 |
| this bit didnt work for me
If sock.State = "sckListening" Then ' if the socket is listening
Even after i put the scklistening in quotes sock.state still says it cant be used as an expression |
|
 |
| Felicitaciones. Muy buen tutorial.
Congratulations. Good tutorial. |
|
 |
| Incredibly useful. Easy to Follow and well explained.
Many Thanx Mike
|
|
 |
| |
 |
| | Sure, we'll get right on that. |
|
 |
| Hi friend,
Really its awesome to getinto socket programmings to begineer!.Thank You.It was much helped me! |
|
 |
| can you help me make a code for a client connnects the server indicate what ipaddress is connecting to the server
esot_dc@yahoo.com
thanx |
|
 |
| | well u just do: WinSock.Hostip on the server side |
|
 |
| giving some tips on how to do multiple socket connections would be very much apprieciated.. can't seem to find any good guides anywhere.
main problem im having is being able to control/monitor incoming connections... |
|
 |
| | hi. i wrote these codes. but error indicated that "sock.RemotePort = txtPort.Text". error type is type mismatch. i am begining. please help me!!!. my mail adress is "usonnosu_2006@yahoo.com" |
|
 |
| error "sock.RemotePort = txtPort.Text":
you have to type the port before hitting the button, "so I presume" |
|
 |
| tips on how to do multiple socket connections:
You must have multiple winsock controls, an array of controls if you are comfortable with.
client side: not interesting, this can be done with multiple copies of program running.
server side: you need one ear and multiple mouths, that is, one listening socket and array of talkers; in ear_ConnectionRequest do not close your ear, create a new mouth and mouth.Accept talking |
|
 |
| | Thanks for the info, I managed to build a simple multiplayer game with it. Can you provide me with an advanced tutorial on allowing clients who are behind a router to connect to the server program? That would be very helpful... matte05 [at] hotmail [dot] com. |
|
 |
| Great code bro!
Keep em coming. =] |
|
 |
| hii does this example works only on LAN or it will work on WAN (outer internet also)..plz reply soon sumit_space@yahoo.co.in
i also made the server clientprogram ..its working on LAN but it can n't send data or messages to the system outer from the Network..means have another internet connection...reply soon |
|
 |
| | At the full server code you don't need to add the textboxes txtIP and txtPort but txtMe and txtOther. |
|
 |
| | hi buddy excelent job,i need a hand qith how to use the same code in .net,i try but i dont know how,how to change activex to .net?? any help please email me kupa7@hotmail.com |
|
 |
| | if txtMe.text doesn't work, try txtMe.value |
|
 |
| | can this client-server architecture be used over the internet. I mean my client is a regular machine while the server resides on a machine over the internet with a fixed IP address. |
|
 |
| | i am the student at UTM(malaysia).this is the first time i use VB in make the socket programming.could you please help in to explain more detail about using socket programming using VB.my email address is fiezka@yahoo.com |
|
 |
| hi..i could run the client programming bit fail to run the server programming..the error is at sckTCPProtocol...i did not have any idea about this error..could you help me??
fiezka@yahoo.com |
|
 |
| Here is my entire code for a UDP talker and UDP listener in separate forms, using VBA in Access 2003. Text sent from the talker form is displayed in the text box of the listener form.
Server (Talker)-Form has the Winsock control named “UDPTalkerSocket” and a command button named “cmdSendUDP”
Dim MsgCnt As Integer
Private Sub cmdSendUDP_Click()
' setup the socket
MsgCnt = MsgCnt + 1
If UDPTalkerSocket.State = sckClosed Then ' if the socket is closed
UDPTalkerSocket.Connect "localhost", 12345
End If
' send!!
UDPTalkerSocket.SendData "Testing UDP" & MsgCnt & vbCrLf
End Sub
------------------------------------------------------------
Client (Listener) )-Form has the Winsock control named “UDPListenerSocket” and a text box named “txtText1”
Private Sub Form_Load()
UDPListenerSocket.LocalPort = 12345
UDPListenerSocket.Bind
End Sub
Private Sub UDPListenerSocket_DataArrival(ByVal bytesTotal As Long)
Dim s As String
UDPListenerSocket.GetData s
txtText1.SetFocus
txtText1.Text = s
End Sub
|
|
 |
| | how can you test this if u only have one computer????????? |
|
 |
| | It works just fine on one machine! In that case you've got interprocess communications, between two VB sessions. One session runs the client code, the second runs the server code. Just use the your machine name (or IP) in the client's IP text box. |
|
 |
| | hey, erm, i cant call the winsock thingy, u said take it from the toolbox but its not there, any way to call it from code view? (roflcaeks@hotmail.co.uk) |
|
 |
| | WOW Amazing...Nicely explained. Very much important for beginners like me. Can i get more advance tutorials for multiple connections..etc dnyaneshwar20@yahoo.com |
|
 |
| | nice tut, just what i needed. |
|
 |
| | can only a winsock control handle multiple connection a same time |
|
 |
| if the server i willing to contact to is password protected, how can i forward the password to the host???
thanx - HaTy |
|
 |
| | This is very good for beginngers like myself. Is there an example on how to use UDP to send video frames to a server? or client? |
|
 |
| | I haven't done network programming with VB before, but I need to do this ASAP for a project at work. This was the first hit I got from google. Your page was one of the most helpful tutorials I have ever read on the internet. Good job on making it so easy to understand!!! |
|
 |
| | Thank you VERY much for this tutorial. Extremely well made and explained. |
|
 |
| | Simple and clear for the beginners |
|
 |
| very interesting and awesome program!!!
|
|
 |
| This is fantastic - thank-you so much for this
I have been trying to get my head around how all this worked for days - this had me sorted in just a few minutes.
fantastic tutorial, very clear and to the point - the demo works perfectly too.
Thanks |
|
 |
| |
 |
| | Thank You so much for this wonderful tutorial.for beginners , you could include how to get the hostname so that client can provide to hostname. |
|
 |
| The tutorial is for a server/client app within the same project or executable. When I try to split it out into two separate applications, to talk to each other, the communications become one-way only. How to fix this???
Thanks
|
|
 |
| | the server is what receives messages and the client is what sends messages, so if you want to have bidirectional communication you need both client and server routines in your program. |
|
 |
| It is Great...........
Thanks ..........
pls wright down more about socket programming......... |
|
 |
| I used this code and it worked fine for server part but on client part when i do
sock.Connect i can see connection request at server end and it accepts the connection succesful but on client side socket status is still connecting. Does server sock need to send any acknoledgement back to client on accepting the connection. |
|
 |
| | Dude it is a well wriiten tututorial. thx. was of gr8 help |
|
 |
| |
 |
| | cool tut...fantastic for beginner.. |
|
 |
| | Beautiful work here, thank you |
|
 |
| |
 |
| |
 |
| |
 |
| Its really a great help for me.
Now I need to try multiple thread part. |
|
 |
| | plese put the c# code if any one have |
|
 |
| | I need to do this ASAP for a project at work. This was the first hit I got from google. Your page was one of the most helpful tutorials I have ever read on the internet. Good job on making it so easy to understand. online games |
|
 |
| |
 |
| It works just fine on one machine! In that case you've got interprocess communications, between two VB sessions. One session runs the client code, the second runs the server code.
Matt - Club Penguin |
|
 |
| | Since data transfer and receive is so fast, how would I know weither I've done with all transactions outside of sub socket event module before I close the connection.buy drug |
|
 |
| |
 |
| very interesting tutorial, thank you very much
|
|
 |
| Beautiful work here, thank you.
Awesome <a href=http://sitebestinfo.com/>Make money online</a> here, |
|
 |
| Beautiful work here, thank you.
Awesome <a href=http://sitebestinfo.com/>Make money online</a> here. |
|
 |
| |
 |
| | great tips! Thanks for sharing. good info!! <a href="http://www.learn-how-to-quit-smoking.com">How to quit smoking</a> |
|
 |
| just one error :
Server:
Quote:
1 Winsock control "sock"
2 Textboxes "txtIP", "txtPort"
the 2 textbox on the server should be txtme and txtother... however great job guy! |
|
 |
| |
 |
| |
 |
| <a href="http://www.mortgage-adviser-uk.co.uk">mortgage adviser</a>
<a href="http://www.best-mortgage-advice-uk.co.uk/">mortgage advice</a>
mortgage advice
mortgage adviser |
|
 |
| | This is a wonderful tut for a beginner, nicely explained.But hw it can b used to communicate with multiple clients. |
|
 |
| It's great tutorial, i found it usefull. But i want to extent it, so the message receive by client, can it be written into database table ?
Thanks. |
|
 |
| |
 |
| | Giving run-time error '1400' |
|
 |
| Since data transfer and receive is so fast, how would I know weither I've done with all transactions outside of sub socket event module before I close the connection auto insurance
|
|
 |
| VB is way under-rated by most professional/corporate programmers. For many corporate applications, using VB with socket programming can be remarkably more efficient than the more typical MVC web applications (Java/dotNET/Ruby/PHP) that is currently in favor.
Calvin (Wicker Garden Furniture) |
|
 |
| |
 |
 |
 |
 |
Anonymously add a comment: (or register