VS 2010 Listbox Stream Client Server
Mar 11, 2012I created a dll for my host and client, but but does not work! where's the error?
[Code]....
I created a dll for my host and client, but but does not work! where's the error?
[Code]....
Hey guys, I am trying to send data from client to server (encrypted) and the string sent from the client is not the same as recieved from the server. I've been killing my brain for hours to get this to work but I cant manage. Im converting everything to Base64 string.
Client:
Public Sub SendMessage(ByVal msg As String)
Try
SyncLock myclient.GetStream
sw = New IO.StreamWriter(myclient.GetStream)
[code]....
for a school project i need to make a vb application that can stream from client to client.
View 4 Replieshow to create a client/server... But I couldn't... I don't want anything fancy. Just want the client to send the server 4 numbers, depending on the user's choice; after that, the server would turn off the pc, restart it, etc. It all depends on the number received. Is there a rather "simple" way to do it? If it's not to much trouble you could use Atheist's example. (Btw I don't understand the code and, yes, I've checked on [URL])
View 9 RepliesWe are creating a Who wants to be a millionaire style game in VB. Our server is pulling information such as questions and answers from a Access Database and sending them to the contestants (Clients). All transfer of information is directly from the server to each client. One of the "Life Lines" we want to use is "Ask a friend", where one client is able to Instant message another client for a short time to get help on the question.
[Code]...
I'm working for a socket tcp/ip. I have a server form on Server PC and client forms on all clients. I want the clients auto find and connect to the server PC when I open connection on server form? (in common, I have to set the server IP and ports to each clients, if not they cannot connect).
View 3 Repliesbasically i just want client to say "C: emp" ENTER
then, server must reply with all its files in c: emp
The problem I have is: When I click on cmdListen in the server form and cmdConnect in the client form,both programs won't respond and they crash for some reason I don't know.
Client source code:
Code:
Imports System.Net.Sockets
Imports System.Text
Public Class Form1
[CODE]...
Code:
Imports System.Net.Sockets
Imports System.Text
Public Class Form1
[CODE]...
I just finished making my project, its a Registration System using Visual Basic 2010.
How can I make a server that allows client to open the system? so they can Add, Edit, Delete, Save, etc...
P.S. I try file sharing but it doesn't work. using win7 to winXP.
I am currently learning how to program in VB and am using sample code to make a VB Winsock client and server. I beleive the sample code was from VB 6.0. [code]Overload resolution failed because no accessible 'GetData' accepts this number of arguments.I am getting the exact same error in the exact same place in the server aswell. I have tried removing the vbString, but it comes up with a warning and the program doesn't function like it should. I am programming this in Visual Basic 2010 Express.
View 3 RepliesI'm doing a small project. It works on a LAN. The working of the project is:In client side, a user would enters "username" and "password". It would sent that to the server, along with the time.The server would authenticates info on checking a db and writes some info to the db.Also, the server should be able to sent some commands or instructions to the clients.These commands on received by the client, it would invoke certain functions/subs on the client based on the command.So, would it be better to use TCP client & listener or WCF ?
View 6 RepliesI have started to learn how to use the TcpListener class to create a server/client chat facility, But im having some issues as to how to perform this at the moment i have the following code for the server.
Dim counter As Integer
serverSocket.Start()
ListBox1.Items.Add("Server Started!")
counter = 0
While (True)
[Code]...
Client Accepted (I understand would most likely need a new thread for each client who is accepted, Once accepted , Return to the main loop to check for more clients.) No Client Connecting I understand that this may have to be done in a thread but ive not looked into using a seperate thread for this to infinitely run.
I'm trying to make a client and a server connected in vb 2010. how to make a client and server connected? There is only vb2008 in the codebank and if my vb2010 tries to convert it to vb 2010 it will error.
View 1 RepliesI'm creating a VB2010 application which will require a connection to MSSQL. Should I Install SQL 2008 on my computer then use MS SQL 2008 as my data source or skip installing SQL 2008 and use MDF instead?
Also the program must have the following requirement
Program must use SQL as their database source End user must not install SQL server on their machine Program must be able to update (sync) the local SQL database from SQL server on the web. (User will have option to delete everything on their local database and load everything fresh from the server or to merge the update with existing data) Programs will (most of the time) run in an offline environment. When the user have access to internet they can update the database The program must allow user to add,edit, delete their local database while offline Only certain user (authorized user) can update their local database back to the serverC
Is it possible to created a program that meets all the above requirement ?
I have a simple client/server program that sends a message to the server from the client.
Here is my
Server
Imports System.Net, System.Net.Sockets
Public Class Server
[Code].....
I'm developing a Windows application that runs on a terminal server and users connect to it via remote desktop. Standard stuff. However, I would like to know something about the user and I was wondering if there's a way to get some information about the client that the user connects from (his local machine).
View 1 RepliesI have an exe file that I have copied to test workstations and would like to launch that application instantly when needed from a dedicated server. I could do an agent based (timer) application where client application checks every 2 minutes (or so) for a file on server, it there file is modifoed then it launchs the GUI app on the workstation.
I really want an agentless approach and have tried PSexec and MS SCCEM agent but it still takes 3-4 seconds to launch on each machine one after another. If we are talking about thousands of machines in my environment there could be delay of more than an hour to launch app on each machine.
I was wondering if socket programming is the best approach where instead of a timer; app listens to a port and when it sees it it launches local exe file. I am new to socket TCP/IP programming.
I'm trying to make a Client that will automatically run a .DLL that I have created and send information over port 80 to my Server program that will take that data and import it into a database for me. Problem is, I don't know where to start as I have never done this before. I want to do this in VB .NET as this is the programming language that I know. What are methods of doing this? Is there sample code out there for something like this? My google searches are failing me.
A better layout of what I'm trying to do:1. Client Runs .DLL, retrieving information from an Excel file.2. Client takes these properties with the data it contains and sends it to a program outside of the local network through port 80, my boss refuses to let me use any other port.3. Server accepts the data and builds its own properties to be imported into my Access Database.4. Repeat over, and over, and over, and over.
I plan for the server application to be a console application, and the client to be a windows form.
I'm breaking my head over the next problem. I have 2 applications (client/terminal). the client reads out the webcam and generates an image. This image needs to be send to the terminal which can accept multiple clients. At the terminal all received images are placed in an ordered panel. The purpose of this application is to monitor multiple webcams.What i can't get to work is how to send it on the client side and receive on the terminal side.
[Code]...
I want to make my client & server fully working. If a client connects to the server it should tell that there is a new client connected. if a client disconnects it should tell me a client disconnected.[code]it says in my patcher window(where it should add the text) that it's succesfully connected.but at the server side its not saying there is a new client connected/disconnected, how can I do this?
View 2 RepliesIm trying to make a basic Client/Server. The server can handle multiple clients and each client can send /recieve messages from the server.It works fine with just 1 client. but as soon as i connect with a second client. The first one no longer works. Anything sent from the first client is ignored by the server and when running the server in debug mode it gets errors from the client 1 stream.
Its as if the server will only hold one stream at a time and whenever another client joins the other streams are shut but the new client works fine. Even though i never close a stream.
[Code]...
Edit: FINALLY FOUND IT! Stupid mistake i forgot to put the ClientN variable up by one for each new client.So i was creating a new space in the array but erasing the first slot for the new client
Everything on the client end now works fine, but I am having problems with my console based server. Users can connect and chat just fine, but when a user disconnects, the server does not know how recognize this, often spamming the last message that was sent by the user, follow by the server app crashing.
I need to find a way to stop streaming info to the user (and what ever else I need to stop to keep the server from crashing) and broadcast a message that says which user is disconnecting.
I have a simple tcp server listening for clients. I use a mud client to test if it's working. The mud client says that it's connected to 127.0.0.1, but the server doesn't show the msgbox that a client has connected.[code]
View 3 RepliesI am working on a chat client and server, and so far it works well, but when I close the client, the server throws an exception because it continues to try to do processes on the disconnected client. I have tried adding clientSocket.Close() in various places throughout the client and server with no luck. Does someone know how to add the disconnect code to either the server or client with this code?Server:
Imports System.Net.Sockets
Imports System.Text
Module Module1
[code].....
have any examples for UploadFileAsync? Including both server and client examples?
View 1 RepliesIm making a desktop player for a online web radio, and for the program I wanna make it show all the stream info. Like the stream name, and such. However I dont know how to do this? I looked everywhere
The server url is setup like this "[URL]" And it has all the stream info and that there. So is there a way I can get the info from there onto like say a label? Live updates btw.
I've basically made a basic tcp server/client application. The thing is that I'm behind a router and so will be the other people that use my clients. I've had to use port-forwarding or the software "rinetd"to run quite a few applications online.
Let me explain: I'm on a lan network that connects to the internet. Whenever I want to host a server - for instance a basic ftp or http server. If I give my external IP to anyone, they won't be able to access my server. Even if I portforward, it doesnt work. I have to use rinetd here. For other applications, portforwarding works. I'm not sure how these things work at all.
Anyway, my issue now is that I have created this server/client application. I'm having serious doubts that if I run the server, I'll have to either a) portforward or use rinetd to get people to connect to my server. IF I need to portforward, that's fine. However, using rinetd would really suck... My 2nd concern is as follows: IF the person running the client is in a similar situation as me (i.e he's on a lan that has a router which connects to the net), will he have to portforward or use rinetd as well? If he portforwards that's fine. But I don't think I could get people to use rinetd.... Also, if there are more than 1 person on a lan trying to connect to my server, there is a big problem when they try to portforward: they will only be able to allocate one of their internal ip to that port, and the others won't be able to connect, right? How does this work? I mean, I use many softwares like msn/skype/(some games)/firefox that do not need portforwarding/rinetd. Yet they work. My housemates(other people on the lan) use the same softwares, and it works fine. There's no clash/probs watsoever How come these run fine?
Anyway, back to my issues. Given I have no knowledge about how the above work, I was wondering whether there was a way to host a vb .net server application on an external website (external to my house) so that I might *avoid* the above mentioned problems, and to what extent that would be a sound solution.
This app is trying to send messages to a client listening on the port. The client's logs show that their port is being opened and closed, but no data coming in. Is there a bug or something missing in the following code, like perhaps stream.flush or stream.endwrite or a thread.sleep(0) line, that could cause this? The puzzling thing is, WireShark on the client computer does show the message my app is sending coming into the listening port.
[Code]...
I have been reading through Atheists posts in regards to client-server and TCP client/server connection's. But how do i go about writing a program with 1 client and server where the client side creates a text file.Once the server sees there is a text file it connects and downloads it to itself or the client pushes the text file to the server.Once on the server i will read the text file and put its info into a sql db.
View 14 Repliesi have made tcp connection to this webpage using tcpclienti can send commands like GET /Pagename.aspx to get the htmlnow is it possible that from webpage.aspx i can get the connected client stream and write to it and tcpclient gets that data ?
View 1 Replies