Rugby
[1/7] from: yrochon:redactek at: 10-Mar-2003 10:22
I try to use Rugby protocol by doing this, first I setup the server:
* >>do %rugby-base.r
* >>triple: func [n [integer!]][3 * n]
* >>serve [triple]
Everything is working well, so I setup the client:
* >>do %rugby-base.r
* >>do get-rugby-service http://63.203.208.251:8002
<http://63.203.208.251:8002/>
* >>triple 3
So as you must expect, I receive 9 as answer. I know that the server is
running very well inside my network, and now I setup my router to
forward request on port 8002 to the appropriate machine (192.168.1.102).
I have a contact outside that is doing the exact same thing to setup its
client and he receives this message when he tries to execute the
function:
** Access Error: Cannot connect to 192.168.1.102
** Where: open-proto
** Near: return to-result read/custom proxy reduce
I also tried to use this parameter when I started the server:
* serve/restrict [triple] [65.125.103.100]
Same error message happened. If you have any idea what I could do wrong.
Thanks!
yanick.rochon;
Consultant(informatique);
www.redactek.com;
[2/7] from: greggirwin:mindspring at: 10-Mar-2003 10:38
Hi Yanick,
yr> So as you must expect, I receive 9 as answer. I know that the server is
yr> running very well inside my network, and now I setup my router to
yr> forward request on port 8002 to the appropriate machine (192.168.1.102).
yr> I have a contact outside that is doing the exact same thing to setup its
yr> client and he receives this message when he tries to execute the
yr> function:
yr> ** Access Error: Cannot connect to 192.168.1.102
yr> ** Where: open-proto
yr> ** Near: return to-result read/custom proxy reduce
Your outside contact must use the public IP address for your server,
not the private 192.168... address you can use on your internal LAN.
-- Gregg
[3/7] from: yrochon::redactek::com at: 10-Mar-2003 23:51
Hi Gregg,
My outside contact is using my public address because he's doing
something like this:
do get-rugby-service http://24.200.255.203:8002
When he's doing that, no problem, the connection is working between my
computer and his computer, he receives no error message.
But when he's calling the function "triple", then appears the error
message.
Thanks a lot for your feedback!
yanick.rochon;
Consultant(informatique);
www.redactek.com;
[4/7] from: jvargas:whywire at: 11-Mar-2003 1:04
Yanick,
Rugby responds with the internal "private" ip address to the
get-rugby-service function call. So that when you call "triple"
it is using the ip address that was passed on by get-rugby-service.
If you want to change the ip that rugby uses to respond you can
use this.
configure-rugby [ set ip address for stubs to 24.200.255.203 ]
before calling
serve [ triple ]
It would be great if rugby could respond to requests according
to the ip address that the client is connecting to. I am not sure
if this can be done. But I am looking into it. Just responding
with an specific ip address can create trouble in mutihomed and
nat scenarios.
Hope this helps, Cheers,
Jaime
On Monday, March 10, 2003, at 11:51 PM, yanick rochon wrote:
[5/7] from: maarten:koopmans:surfnet:nl at: 11-Mar-2003 8:21
So you want Rugby to listen on/respond to multiple network interfaces?
This is tricky because the stubs generator does not know what ip address
to include in the stubs then.
I think this can be changed, but... it will be some sort of a rewrite
which will take some time.
If using [ set ip address ... ] doesn't do the trick let me know and we
see what we can work out.
--Maarten
[6/7] from: yrochon::redactek::com at: 11-Mar-2003 10:43
Re: Rugby... Finally!
Hi Jaime,
I received the same advice from Marteen Koopmans and you were right,
it's working now, thanks a lot!
yanick.rochon;
Consultant(informatique);
www.redactek.com;
[7/7] from: maarten:koopmans:surfnet:nl at: 11-Mar-2003 21:01
Yanick,
I'm glad it works for you. Of course I am not surprised ;-)
--Maarten