#1 Re: mORMot 1 » what are the preliminary conditions for http server with mORMot » 2013-03-27 21:23:50

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.

#2 Re: mORMot 1 » what are the preliminary conditions for http server with mORMot » 2013-03-27 15:48:04

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)

#3 mORMot 1 » what are the preliminary conditions for http server with mORMot » 2013-03-27 10:34:11

childem
Replies: 5

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!

Board footer

Powered by FluxBB