You are not logged in.
Pages: 1
I was very hesitating to follow to ask again, because it may be a quite stupid question!
Still It's about example 14 - Interface based services.
I ran the client on notebook (192.168.1.103), and the server on the desktop PC (192.168.1.101), so I modified the example unit to:
0: Client := TSQLHttpClient.Create('192.168.1.101','888',Model);
I checked the server program in winhex to view the modules loaded, but I couldn't find either winsock.dll or ws2_32.dll (the latter was found with the client).
And I set a breakpoint at unit synwinsock(.pas) at the following point before running the server:
function InitSocketInterface(const Stack: TFileName= ''): Boolean;
begin
Result := False;
SockEnhancedApi := False;
but it was not fired, (while fired when the client is running), which meaning, it didn't load either dll.
I had tried a third-party example, which works normally on two computers in the same ethernet.
I'm skin shallow over the source codes!
so I'm wondering if I had missed something, which caused the error "Server not available - Unable to connect to 192.168.1.101:888 - .....".
Thank you very much, ab!
By the way, the codes come from the trunk dated 2013-03-27 16:29:35.
Thank you, ab!
it is a great help, I will check every aspect to set the right conditions!
(I ran the server on win7, the client on xp)
I use a wireliess router for a desktop PC and a notebook to access the internet, and they are set with the static ip as 192.168.1.101 and 192.168.1.103, both can ping the other successfully!
but the samble code: 14 - Interface based services and 04 - HTTP Client-Server seems not work!
TSQLRestClientURINamedPipe can't connect to server "RestService"
via "\\.\pipe\Sqlite3_RestService":
system cannot find the file
(name pipe)
or
"Calculator" interface or REST routing not supported by server: {
"ErrorCode":403,
"ErrorText":"Forbidden"
}.
(htttp/ tcp/ip)
the error msg happened when both run on the desktop PC
when the client ran on the notebook, similar errors happened!
will anyone be kind enough to give me any instruction, thank you all!
Pages: 1