Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Communications > Help regarding accessing an application on a remote server.


Reply
 
Thread Tools Display Modes
  #1  
Old 06-25-2003, 09:13 PM
FacJoe FacJoe is offline
Centurion
 
Join Date: Jun 2003
Posts: 107
Default Help regarding accessing an application on a remote server.


Hi.

I just made an application using VB, with the Access as its database. There's gonna be about 5 users who will be using it simultaneously. Is there anyway I can make a client/server application that enables the 5 users to access the VB application in a remote PC? I'm thinking something along the lines of specifying w/c PC to connect (client side) then, upon connection, the server automatically runs that application alone.

I wanted to do this because I want to do the accessing of the VB application in such a way that only the VB application is accessible and the database I'm using won't have to be networked.

I've tried experimenting with the winsock controls by making a client/server application that basically just transfers messages from each other. I keep on getting a run-time error 40006 every time I call the winsock.SendData method. Also, for some inane reason, I have this form_terminate method where if the client terminates/closes the form, the connection to the server is closed. What happens is, immediately after I connect to the server, the connection is closed. Why is this so?

Thanks in advance. If you guys need a copy of both my codes, I'm going to post it up.
Reply With Quote
  #2  
Old 06-25-2003, 09:29 PM
FacJoe FacJoe is offline
Centurion
 
Join Date: Jun 2003
Posts: 107
Default

I just noticed something...

I added an if statement in the connectionrequest method for the server application and the same if statement ni the connection method for the client side. It seems that the client seems to acknowledge the connection everytime it is made, but the server side doesn't. Any tips?

Thanks again.
Reply With Quote
  #3  
Old 06-25-2003, 10:12 PM
FacJoe FacJoe is offline
Centurion
 
Join Date: Jun 2003
Posts: 107
Default

AGH!

Nevermind the previous problem. I've got it working already.

Now my problem is this..let's say we have PC 1 and 2. PC 1 is my "server" side and the other is the client side. I establish a connection using TCP protocol. Is it possible for me to open an application from PC 1 using the connection that I have in PC 2? Also, for the multi-user part, can multiple users connect to the server?

Thanks.
Reply With Quote
  #4  
Old 06-26-2003, 01:07 PM
blindwig's Avatar
blindwig blindwig is offline
Ultimate Contributor

* Expert *
 
Join Date: Jun 2003
Location: New York, NY
Posts: 1,929
Default

FacJoe,

I'm trying to write a generic server that I can use to trigger tasks on a remote machine (server). I'm trying to make it generic enough so that it can be used as a template to make just about any other server, such as the one you're working on. Take a look at my thread: http://www.xtremevbtalk.com/t87174.html
__________________
"Fortunately, I live in the United States of America, where we are gradually coming to understand that nothing we do is ever our fault, especially if it is really stupid." -Dave Barry
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
multi connections, one port? burningodzilla Communications 5 08-02-2005 05:04 PM
Making an Application Server vbtester Communications 12 06-16-2003 04:02 AM
IADsGroup on Remote Server hmorgan General 0 05-07-2003 09:22 AM
WinSock vbsupernewbie Communications 1 09-12-2001 10:20 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->