Communicate From Client To Server From Multiple Clients On Multiple Requests In Socket Programming?

Jan 8, 2010

I have been struggling to find a solution for this problem. What I need to do is build a server application that accepts tcp client requests from different clients running on same port say:1003. I experimented by using asynchronous mode call backs etc. but it disconnects once connection is established and does not respond for further requests from the same client.

View 1 Replies


ADVERTISEMENT

Communications :: Write A Server That Can Communicate With Multiple Clients Through Tcp/ip?

Feb 10, 2010

I'm new to network programming and i'm trying to write a server that can communicate with multiple clients through tcp/ip, the clients need to communicate with the server to and with the other clients. Currently i've got a client server program that works fine for only one client:

[Code]...

I'll guess to accept multiple clients i have to create some clienthandler class at server side, but i have no idea which code it has to contain, i've already spend hours searching on google but didn't find anything usefull. Can somebody help me with this ?

View 1 Replies

Client Server Winsock Or Socket Programming?

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

Asynchronous Socket Programming Vb 2008(.net) Again Server Should Able To Send The Data To Client

Feb 2, 2011

I am facing problem in asynchronous socket communication.

1)I wanted to perform connect(from client to server) operation on enter button and send the data whatever client want to send and disconnect from server. And again client should get connect to server whenever client wanted to send data. this is the mechanism.

i.e how to reuse the socket.

2)Again Server should able to send the data to client.

View 5 Replies

VS 2008 Multiple TCP Clients - Send The Data Twice To The Same Client

Mar 18, 2009

I have a large class that I built to act as a TCP server for one of my silverlight applications. When a user connects it stores the tcp client into a table for later communication. The problem is that when I send data, with more than one client connected, it loops through both open TCP Clients but some how sends the data twice to the same client.... the other tcp client never receives his data. This isn't a logic issue as I can step through the code and see that it is clearly taking each individual TCP client out of the table and sending it the data. They all use the same port... could that be the issue? And if so how do I make it so that it can connect on one port then transfer to another? I have tried using different computers for connecting but still the most recently connected client receives all of the packets of data.

View 6 Replies

Server With Multiple Clients?

Mar 8, 2011

i want to designe a simple program that have one server and multiple clients.i program with vb.net,but dont know anything about winsock, can you send me a sample code for start.

View 1 Replies

Managing Multiple Client Socket Connection?

Sep 11, 2011

Am developing a server - client application using the system.net class , that will have more than 5000 simultenous client connection.what is the best way to manage multiple client connection like this?

View 3 Replies

Server Handle Multiple Clients Simultaneosly At An Instance?

Sep 22, 2011

I am facing a problem in VB .net Client/Server application where I am successfully able to talk between them using TCPListener and TCPClient class usage. However, when I try to connect another Client to the same server on the same welcome port, it errors out throwing an exception or behaves very unexpectedly.Isn't it true that the Server connection is on a WELCOME PORT for all the clients, and that each client connected gets a new port to carry on its communication with the server AUTOMATICALLY (according to the Tomcat webserver working)

View 2 Replies

Visual Studio 2008 - Get Multiple Clients With The Server?

Dec 12, 2009

I made a simple chat system that connects to a server with a client one on one. I'm not really sure how to get multiple clients with the server so that you can see everyone's messages. Here is the source code. The Server only accepts one client at a time.

View 3 Replies

Cyberproj - Connections From Multiple Clients To A Server Having Winsock Control

May 17, 2010

I am developing project on cyber cafe using vb .net 2005 and winsock i don't know how to accept connections from multiple clients to a server having winsock control

View 2 Replies

Identify Connection Lost Between Socket Server And Socket Client?

May 21, 2011

I wrote a Socket Client which will send the Socket Server some data and get some response from Server. This process will be running once in every 2 seconds.

Now what I need to know is How we can identify the connection lost between Server and Client?

I need this to be implemented in the Client side. If there is no connection then Client should automatically close the connection. Once the connection with the server is available in the next attempt it should connect automatically.

View 1 Replies

Open Multiple Socket Connects To Multiple Servers

Apr 4, 2012

i have a form where i wanted to open multiple socket connects to multiple servers. i defined "clientsocket" as a socket array

[Code]...

View 6 Replies

Client Server Application - How To Make Clients On Sql Server

Sep 24, 2010

How to make clients on sql server i mean when i will install my application on clients how i will connect it with sql server?

View 6 Replies

Client Socket - Send Message Through Client Socket Receive Specified Argument Was Out Of Range Of Valid Values

Oct 15, 2011

Below is my code, but when i send the message thru client socket i receive Specified argument was out of the range of valid values. Parameter name: size

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim serverStream As NetworkStream = clientSocket.GetStream()
Dim outStream As Byte() = _
System.Text.Encoding.ASCII.GetBytes("0800822000000000000004000000000000000920092126012345001")

[CODE]...

View 1 Replies

Make A Udp Server That Waits Client To Communicate

Apr 16, 2010

how i can make a udp server that waits client to communicate with him and the server answer them back even if the server doesn't know the ip of the client in vb.

View 3 Replies

Make Two PCs Communicate Via Network Using Server / Client

Jun 22, 2010

I use Microsoft Visual Basic 2008 Express Edition and I am begginer in computer networks. I want to make two PCs communicate via network using server/client I followed the example from this site: [URL] (VB.NET TCP Client/Server Socket Commmunications) When I run the applications server and client in one computer then is possible the client to connect with server.

[Code]...

View 2 Replies

Dealing With Multiple Requests?

Jul 30, 2009

I have a website and say a user comes along and fills out the form with bogus data. Then after he fills it out, he enters another one and another one and another one of bogus data. He's basically just trying to clog up the data base.

How is the best way to combat this? Would it make sense to when they submit the data track the IP address?

View 4 Replies

Info: Multithreaded Server Socket Program Or Client/Server?

Oct 26, 2011

I made a simple TCP server (I've found the example on the web) in VB to receive data from about 40 TCP clients.The clients are not synchronized but sends data about every 18 minutes; the problem is sometimes several clients sends data at the same moment, so I can't receive data.I also made a second program that reads the data (server program writes data on a file, read from the second program) scheduled.

My question is this: I've seen on the web examples about Multithreaded Server Socket Program, so I suppose this could manage my 40 clients (but now the clients are syncronized and send data at the same time in client mode) or is better get data (I have a central client that asks data to all 40 devices in server mode)?

Second question: can I make a single program where I run both TCP client and TCP server at the same time?

View 1 Replies

Socket Programming - Close A Connection From Server?

Nov 24, 2011

I have the following code in my Server Form:

Imports System.Net, System.Net.Sockets
Public Class ServerForm
Private serverSocket As Socket
Private clientSocket As Socket

[code]....

for the first time, when I click on Connect, it is going to connect to server as well and also it works if you click on the disconnect. for the second time if you click on the Connect button, it gets connected but the disconnect button is not working.

View 9 Replies

Handling Multiple Clients With TcpListener?

Jun 25, 2009

I have been programming a TcpListener Program and I have everything working right! So far... Except that when I have multiple clients connecting to my Server... I used a try catch statement to catch the error and it says that tcplistener doesn't allow multi connections... think creating a new thread for each connection sounds like the most reasonible answer but I can't grasp the concept of it...

Here is my frmMain:
Imports System.IO
Imports System.Net

[code].....

View 1 Replies

VS 2008 - Flex Actionscript - Create A Windows Client That Could Communicate With Server Using Protocols

Sep 23, 2009

I am going to create a gaming platform primarily with flash,flex and was also looking to create a windows client that could communicate with my server using these protocols. Could someone point me in the right direction on any possible .net libraries available that could handle the communications between client and server?

View 2 Replies

Allow Multiple IE Browser Clients With Unique Sessions In IIS 6.0?

Mar 2, 2011

I have a ASP.Net VB.Net application, which I developed an deployed in about 2004. I have just upgraded it to a new server and IIS 6.0. The application requires users to login from IE it and maintains their State using sessions on the server. I would like the users to be able to have multiple browsers open, each running with unique data on their client system. Is this possible, if so, what do I need to do?

View 4 Replies

Make VB Code Usable With Multiple Clients?

Sep 21, 2011

l have just written a vb.net application and would like to install it on the server such that various users would access the central database on the server how would l achieve that in vb.net

View 1 Replies

VB Express 2008 Registration For Multiple Clients?

Apr 6, 2010

I teach programming at a high school and I have used VB 2005 Express (in a computer lab of 33 clients) for a number of years without a problem. However, this year I switched over to VB 2008 Express and now I am constantly having registration issues. I have found the following ...

1. You must re-register the product for every user on that client

2. Each client must have a unique registration key

3. You are allowed only 30 days of useage without registration

What is happening is I asked my students to register the application themselves. But we keep getting this registration request every time a student switches seats in the room. Now we are getting an error message that says we have had too many registrations from this IP address.Is there a registration key that will work on more than one computer? Is there any way around the registration issue?

View 3 Replies

.net - Check The Connection State Of A TCP Server (Socket) With TCP Client?

Apr 23, 2012

For almost a week I am reading and trying to find a solution for checking connection state using a TCP Client (using socket class) In my scenario I have a TCP Client that is connected to a server (it is not controlled by me) and i want that from time to time to check the connection state, and reconnect if necessary.I have read a lot of information on the internet but i did not find a suitable solution.Briefly, these are the methods that i have found on the internet and try to implement.But unfortunatelly, i have found some scenarios where the TCP Server is closed and the TCP Client is still saying Connected 1.Example from MSDN

[code]...

View 1 Replies

Get The Client Connection Parameters Of The Socket On Server Side?

Sep 13, 2011

I want both the client and server to write and read resp. at a constant rate (which can be configured on the GUI of the client) to the buffer.I am able to send from the client at 150 bytes per packet Now, I should be able to read also at 150 bytes per packet on the server too Since, both are connected through a socket, can we retrieve the socket params (set on the client size, like 150 here) from the server end, using the tcpServer object.Or is it must to send an initial setup packet which tells about these client params and so accordingly the server can continue?

View 1 Replies

TCP Client Error While Reading Data From Socket Server?

Apr 20, 2012

I have a TCP Socket Client (using the Socket Class) that is connected to a simple TCP socket server (just for testing)I have this code snippet :

Dim aSocket as Socket
While aSocket.Connected = True
byteRead = aSocket.Receive(dataByte) 'number of bytes

[code].....

View 1 Replies

Real Time SQL Database Updates Between Multiple Clients?

May 31, 2010

I'm using a SQL database and I'm writing a VB.NET client application. This application is used on multiple computers at the same time. If one of the clients makes an update to the database I would like to have the other clients to be aware of the update.

Has ony one already done this before?

View 3 Replies

VS 2008 Make A Chatroom Allowing Multiple Clients?

Jun 30, 2009

How can I make a server application? How can I then create another application that is meant for the clients!? I have tried to look for something for over 3 months now. All that stuff about TCP/IP just is not working! Using TCP/IP I cannot connect to anyone out of my network! How can I make it so when you start the client application it will automatically connect you to the server. Then having 2 textbox's and one button that says "Send". One text box will have what has been send and recived and the other textbox will be what you type to then later send it! How can I make it work with up to five clients!?

View 4 Replies

WPF + Communicate Between Multiple Application Instances?

Mar 20, 2010

I need to grab information between two instances of my WPF app (the contents of a public collection, to be precise).

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved