Wrox Programmer Forums
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 4th, 2009, 03:39 AM
Authorized User
Join Date: Feb 2008
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Client & Server using TcpClient

Hi everyone...
I am working with a windows application using C#.net for Client & Server.
Client prg will send the information & Server prg will listen the information.

In Server program I wrote the below code:

TcpListener tcpListener = new TcpListener(8001);

Socket socketForClient = tcpListener.AcceptSocket();
if (socketForClient.Connected)
//My Code

In Client program I wrote the below code:
TcpClient tcpclnt = new TcpClient();
//My Code

The above code is working fine, the problem is i need to run this client exe from server. So every client machine must have dotnet framework which is not possible in my case. Is there any optional to do the client program alone in some other way like (vbs,javascript,c,web application)

I have tried in vbs some thing like this
Set wsck0 =CreateObject("MSWinSock.Winsock")
but this too need the MSWinSock.OCX in every client machine....

can anyone???

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report & VB6 & SQL Server wlho VB How-To 2 June 5th, 2013 01:58 AM
DLLs on server pulling server time or client? mussitsch Classic ASP Professional 1 March 1st, 2005 05:38 AM
Derive TcpClient simon.gysi@gmx.ch C# 5 October 11th, 2004 11:01 PM
Soap Client & Permissions jlick Pro VB 6 0 June 22nd, 2004 10:38 AM
Client & Server Side Scripting Problem lbob Classic ASP Professional 0 October 16th, 2003 10:45 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.