Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 1st, 2012, 12:40 PM
crossmark crossmark is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 3 crossmark User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 24 sec
Reputation Power: 0
Winsock and Internet

Hello!
I wrote cod Client and Server. The code works. On one computer is the connection and the data takes. But why is no connection on different computers over the Internet.
Prompt! Thank you!

Reply With Quote
  #2  
Old October 25th, 2012, 04:47 AM
diyaots diyaots is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2011
Posts: 117 diyaots Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 29 m 41 sec
Reputation Power: 0
Solutions of the problem.

Hi dear

Please find the answer of your problem.
First you need to check your connection string which is embedded in your program. You would not added server name in connection string. If there is look like as connectivity to firebird database
ConnectionString =

'DRIVER=Firebird/InterBase(r) driver; UID=****; PWD=*****;'+
'DBNAME=ServerIPatabase Path;

You need to specify in dat file your server ip. And one thing is your database folder must be shareable to accessing user. Then you can simply access the connection from server database.
Here is a small source code for connecting multiple systems through a single database server.
procedure CreateConnection;
const
Constr = 'DRIVER=Firebird/InterBase(r) driver;UID=XXXXX;PWD=XXXXX;'+
'DBNAME=192.*.*.*:C:\Program Files\DataBase\EXAMPLE.FDB';
begin

ADOConnection1.ConnectionString := constr;
ADOConnection1.Connected := True;
ADOConnection1.Open;
If ADOConnection1.Connected then
ShowMessage('Connection is active');
ADOQuery1.Connection := ADOConnection1;
ADOQuery1.SQL.Text := 'Select * from Test';
ADOQuery1.Open;
ShowMessage('Total Records = '+IntToStr(ADOQuery1.RecordCount)+' '+ ADOQuery1.Fields[2].AsString);
end;


Here 'DBNAME=192.*.*.*: C:\Program Files\Database\EXAMPLE.FDB'
This is database server ip address, and rest of server database path


thanks
diya

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Winsock and Internet

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap