Winsock Client Connects Once But Not Twice
Jul 3, 2011
I've had a problem which Mike has kindly helped me with here: url..I now ahve a problem when disconnecting then trying to connect again. The app works fine once, but throws the exception again if you try to connect the client a second time.
View 4 Replies
ADVERTISEMENT
Apr 16, 2011
how can i make claint/server program without winsocet
View 1 Replies
Sep 13, 2010
i write a server program using vb.net but i can not accept multiple client at same time.
[Code]...
View 4 Replies
Jun 15, 2010
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 Replies
Jul 14, 2009
how to access client side activity i.e. which client is connected and which computer connected at the same time from server.
View 1 Replies
Sep 6, 2009
I am trying to code a client - server program. I have 4 winsock controls on my main form. The client is able to connect to a free one just fine, and can figure out if they are all in use. When testing my program, I found that when I try to send data through a socket, then send different data directly after, it jumbles the data together.
CODE:
That is the code I am using. When the client is connected to the server, and ready for data, it sends the packet "@Ab". When the server receives this packet, It is supposed to send the welcome alert, and then current events posted in the server.
On the client side, there is a message box that is supposed to show the welcome alert, and at the bottom on a status strip, the current events are supposed to be listed.
When the welcome alert shows, it contains the alert text fine, but then shows the packet for the events after it.
View 3 Replies
Feb 10, 2010
Make a Chat Server and Client using winsock:I want to have a Login forum and Be able to ban user and Give them ranks I would like it to Use INI files.
View 2 Replies
Apr 15, 2010
I have a user app written in VB which up till now has relied on winsock to connect to another device we have. The user app logs onto the device and then send / receives status reports from it which are used to set the controls on the apps forms.
This has all worked well for a long time but I'm now looking to move away from Winsock as I know it's not 'the right way' to do things and I also need to be able to send non ascii characters between the app and the device it's connected to (implementing multi language support).
The issue is with Winsock it would simply throw the DataArrival event when a message was received and I could then process the message and act upon it. When using a TcpClient socket connection I'm running into problems as all responses are on the socket thread which means I can't simply change controls on the main form without using the Invoke check.
What I want to be able to do is have the thread running the TcpClient simply alert the main form thread when it receives data and make that data available to the main thread so it can start processing it and triggering all the other functions etc required (these also interact with the Form). Whilst this is happening the TcpClient monitors any further messages and sends response messages as requested from the main thread.
View 9 Replies
May 31, 2009
I want to make a basic winsock chat server and client, and I just need to know the basics, like.How do you determine where to send the data?How do you determine where to receive data from?How to actually send and receive the data?I just don't want to read from a website that has a lot of extra information. I just want to start off with the basics so I can actually learn.
View 2 Replies
Jul 18, 2012
Im planning to create a Remote Desktop Application and I'm having problem with viewing other computers monitor or screen.
Im not asking for the code on how to do it. and one more thing is it safe to use winsock in creating a client/server application?
View 3 Replies
Mar 25, 2011
i have made a client and server chat system in VB 2008 with winsock,it's a one to one chat and works perfect fine, but do anyone know how to turn it into a multi-client chat system? Code in below: Here is the code for the server:
[Code]...
View 3 Replies
Jun 21, 2010
We 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]...
View 2 Replies
Jul 8, 2011
I have an app that connects to a sql database using the standard connection string.Now i want to do some work on this at home, where i have a vpn connection to work setup.It's quicker to work locally than it is to rdp into work and work from my desktop there.What do i need to append to the connection string to get it to connect to the server at work? i've tried appending the domain in front of the server name but that didn't work. is there something else i should do?
View 2 Replies
Nov 30, 2011
I have the following piece of code, which currently connects to a SQL DB using the users windows login, but I would like to change this to use the UserID & Password in the updated ConnectionString which is saved in a config.xml.
vb
<add key="ConnectionString" value="data source=Server;integrated security=SSPI;database=DB1;User Id=develop;Password=develop"/>
vb
Public Sub GetUserDetails()
Dim strSQL As String
strSQL = "SELECT SUBSTRING(SUSER_SNAME() , CHARINDEX('',SUSER_SNAME(),1) + 1 , 20)"
[Code]....
View 2 Replies
Nov 18, 2010
VB2005: So I created an app that connects to an Oracle 9.2.0.1 using the .net oracle adapter. I can issue queries and process the results. This all works fine on my development machine but now that i have distributed the app to my group I find that it bombs on certain workstations, specifically when it comes to connecting to the Oracle db. I've done a little bit of research but havent come up with anything definitive.
So what should I install on my users desktops to make sure that the connection works?
View 7 Replies
Oct 26, 2010
I have build an application in VB.NET (3.5) wich connects to an oracle DB. I works perfectly on my pc. However. When I install the app on a pc without oracle it will not connect to the DB on the server. Do I have to install somekind of driver on the client pc?
View 4 Replies
Mar 12, 2010
I have a little problem. I made a connection to a database. So now i want the mac address of the NIC that connects to the database. Is that possible ?
View 1 Replies
Jan 29, 2011
i am trying to make a program that connects through a proxy mainly socks proxy but would like to connect through a http proxy also.
View 2 Replies
Aug 5, 2009
I created a vb .net app and basically it connects to the server (my brother's computer at his house) and sends messages. The problem I'm having is, we both have routers. The only way I'v gotten all of this to work, is by both of us connecting ppeo broadband and then our ips work, otherwise the "real ip" is used for all the pcs in my house. How can I connect tcp to him wothout him having to connect broadband. Because to connect broadband he needs to be connected to an ethernet port, so then he cannot be wireless.
View 3 Replies
Mar 14, 2012
I'm trying to create a login which connects with a database which i created on db4free.net and i've installed the connector.
View 2 Replies
May 22, 2009
I need to create a program that connects to a database and determines if what the user entered is in the database. Trying to do this in somewhat the same way that a translator might workchecking to find the word, and if found replace it with what is in the row beside it in the database)
Anyone have any idea on how i should go about doing this?
I know its gonna involve looping but as to how i am completely lost
View 4 Replies
Dec 14, 2009
I'm trying to make an e-mailer that connects to an SMTP server.
Ive looked everywhere and Id prefer if it was explained how to put it into my code.
[code...]
View 4 Replies
Jun 30, 2011
Basically Im going to sell software where once the user buys they register on a page, then their credentials gets added to a database, then once they open my program they login and my program checks if there in the database or not so they can advance.
View 3 Replies
Aug 13, 2009
Is it possible for me to make a login that connects to my forums?So 1. User opens login form 2. Enter info 3. Connects to forums 4. User opens browser and is logged in
View 3 Replies
Jul 12, 2010
I have a website with MySQL databases. I'm wanting it to connect and: display a table's data, login using a table with logins, and submit a form to go to be put in the table.
View 2 Replies
Feb 27, 2011
I am trying to make a very simple program that connects to a MySQL database using VB.NET. My program only has one form and one label. I setup my MySQL database to have a table and one field (a VARCHAR)called "Tab1". I manually inserted the value "CLOSED" into the Tab1 field using PHPMyAdmin. I want my program to change the value of the field to OPEN/CLOSED and I also want the label text on my form to change too when it's clicked.
[Code]...
View 3 Replies
May 30, 2012
Im making image uploader that connects to my ftp and send them in to public_html.This is the
Public Class upload
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim request As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create("ftp://ftp.my.details.com/public_html/photos/"), System.Net.FtpWebRequest)
[code]....
View 8 Replies
Jul 28, 2009
I am working with two databases stored in SQL server 2005, with VB.Net 2005. Database 1 - is the DevelopmentDB and Database 2 - LiveDB. I have two front-ends one connecting to the DevelopmentDB and the other connecting to the LIVEDB.
Now, I have a problem with the live front end. After publishing, it accepts me to log on with the Live username and password..(it connects to the LiveDB) Note: The two front ends i.e., for Development and Live have different usernames and passwords.
So, I get connected to LiveDB, however, when I open a form built in Datagrids it connects again to the DevelopmentDB.I have checked the connection strings its connecting to the Live. This is not an application or database problem. The reason being I tested it on another PC and when I logged on with my credentials it was fine. I was connected to the live database and all the forms were displaying accurate data. Therefore, my conclusion is that this is not the front end or backend problem.
View 7 Replies
Jun 22, 2011
How it's possible to get values (string) from the database when a user connects? i use in this
[Code]...
View 5 Replies
Apr 5, 2010
I have a windows app that has a bindingNavigator connected to BindingSource that connects to an Access database. I am manually adding a record to the underlying database using an OLEDBConnection/command (cloning the current record). The insert into the database works fine, what I am not sure on how to do is force the bindingNavigatgor to refresh and read the new record and refelect it in the record count/next/previous buttons.Jack
View 7 Replies