Board index » delphi » TCP/IP setting for RAS

TCP/IP setting for RAS

Hello,

I need to communicate with TCP/IP from a workstation to another. I set
up one as RAS cleint, the other as RAS server. Establishing
communication works well, including authentication. I use the RASDial
function in asynchronous mode and I can get to the Connected state. Now
I try to connect the Client Socket, but nothing happens anymore. My
impression is, that my setup of the IP address is somehow wrong. Either
the client does not expect the Server to be on the other side of the RAS
connection, or the server does not accept it for any reason. But I dont
get an error message.

What do I have to set for TCP/IP on both sides of the RAS connection?

Any help will be greatly appreciated.

Pawel Silberring

 

Re:TCP/IP setting for RAS


On Thu, 29 Nov 2001 16:24:43 +0100, "Pawel Silberring (CELSI AG)"

Quote
<pawel.silberr...@celsi.ch> wrote:
>Hello,

>I need to communicate with TCP/IP from a workstation to another. I set
>up one as RAS cleint, the other as RAS server. Establishing
>communication works well, including authentication. I use the RASDial
>function in asynchronous mode and I can get to the Connected state. Now
>I try to connect the Client Socket, but nothing happens anymore. My
>impression is, that my setup of the IP address is somehow wrong. Either
>the client does not expect the Server to be on the other side of the RAS
>connection, or the server does not accept it for any reason. But I dont
>get an error message.

>What do I have to set for TCP/IP on both sides of the RAS connection?

>Any help will be greatly appreciated.

>Pawel Silberring

Me again.

Which operating system ?

Olaf

Re:TCP/IP setting for RAS


I am using Windows NT 4

Olaf Kaul schrieb:

Quote
> On Thu, 29 Nov 2001 16:24:43 +0100, "Pawel Silberring (CELSI AG)"
> <pawel.silberr...@celsi.ch> wrote:

> >Hello,

> >I need to communicate with TCP/IP from a workstation to another. I set
> >up one as RAS cleint, the other as RAS server. Establishing
> >communication works well, including authentication. I use the RASDial
> >function in asynchronous mode and I can get to the Connected state. Now
> >I try to connect the Client Socket, but nothing happens anymore. My
> >impression is, that my setup of the IP address is somehow wrong. Either
> >the client does not expect the Server to be on the other side of the RAS
> >connection, or the server does not accept it for any reason. But I dont
> >get an error message.

> >What do I have to set for TCP/IP on both sides of the RAS connection?

> >Any help will be greatly appreciated.

> >Pawel Silberring

> Me again.

> Which operating system ?

> Olaf

Re:TCP/IP setting for RAS


On Fri, 30 Nov 2001 15:30:25 +0100, "Pawel Silberring (CELSI AG)"

Quote
<pawel.silberr...@celsi.ch> wrote:
>I am using Windows NT 4

>Olaf Kaul schrieb:

>> On Thu, 29 Nov 2001 16:24:43 +0100, "Pawel Silberring (CELSI AG)"
>> <pawel.silberr...@celsi.ch> wrote:

>> >Hello,

>> >I need to communicate with TCP/IP from a workstation to another. I set
>> >up one as RAS cleint, the other as RAS server. Establishing
>> >communication works well, including authentication. I use the RASDial
>> >function in asynchronous mode and I can get to the Connected state. Now
>> >I try to connect the Client Socket, but nothing happens anymore. My
>> >impression is, that my setup of the IP address is somehow wrong. Either
>> >the client does not expect the Server to be on the other side of the RAS
>> >connection, or the server does not accept it for any reason. But I dont
>> >get an error message.

>> >What do I have to set for TCP/IP on both sides of the RAS connection?

>> >Any help will be greatly appreciated.

>> >Pawel Silberring

>> Me again.

>> Which operating system ?

>> Olaf

clients side:
enable TCP/IP (right click "Network" on Desktop...properties...
Services...RAS...Porperties...Network
on the Phonebook entry: Server tap select PPP... let server assign a
IP Address, use nameserver of RAS server

Server side ((right click "Network" on Desktop...properties...
Services...RAS...Porperties...Network)
use static address pool, enter two IP Addresses e.g.
Start: 192.168.200.20  End: 192.168.200.21

the RAS Server will then use IP 192.168.200.21 the client will have
the other(21).

leave everything else on default ... should work.

sory don't have a english version on NT at the moment, descriptions
might be differnet.

There also should be more detailed descriptions of setting up all the
properties anywhere in the net including screenshots.

Olaf

Re:TCP/IP setting for RAS


Hi,

thank you for your help. I am making progress, but I am still not there. When I
try to connect the client socket to the server, the server accepts the
connection and gets an event OnConnect. Local and remote address settings look
just fine. But on the client side, no OnConnected event occurs. Sniffing into
the socket source code, I found, that when a WinSock.Connect operation is made,
the response from Windows is 10035, which is according to windows documentation:

WSAEWOULDBLOCK Resource temporarly unavailable...

I tried to repeat the operation later, but that did not help. I was also
suspecting, that I simply miss the message, that tells me the connection is
ready, but the active property of the client socket remains 'false'. What coul
be the cause for the ressource to remain unavailable?

Thank you in advance for any response.

Pawel Silberring

Re:TCP/IP setting for RAS


On Thu, 06 Dec 2001 16:39:26 +0100, "Pawel Silberring (CELSI AG)"

Quote
<pawel.silberr...@celsi.ch> wrote:
>Hi,

>thank you for your help. I am making progress, but I am still not there. When I
>try to connect the client socket to the server, the server accepts the
>connection and gets an event OnConnect. Local and remote address settings look
>just fine. But on the client side, no OnConnected event occurs. Sniffing into
>the socket source code, I found, that when a WinSock.Connect operation is made,
>the response from Windows is 10035, which is according to windows documentation:

>WSAEWOULDBLOCK Resource temporarly unavailable...

>I tried to repeat the operation later, but that did not help. I was also
>suspecting, that I simply miss the message, that tells me the connection is
>ready, but the active property of the client socket remains 'false'. What coul
>be the cause for the ressource to remain unavailable?

>Thank you in advance for any response.

>Pawel Silberring

try to use a working TCP/IP software to determine if the error is in
RAS or Your code(components). You may have a look at INDY or ICS where
You will find a lot of working examples

Olaf

Quote

CS

Other Threads