List Info

Thread: test server with -host




test server with -host
user name
2007-06-18 17:38:15
Hi

trying to run the test server and see it on another
machine.

./script/myapp_server.pl -help tells me it should bind to
all by
default, but when I run it with no host option, I can only
see it at
localhost, not at the ip for the machine (I can see other
webservers
on this machine).

if I try -host all or -host=all I get:

[info] engoi powered by Catalyst 5.7007
Use of uninitialized value in string eq at
/usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm
line 197.
Use of uninitialized value in gethostbyaddr at
/usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm
line 202.
Use of uninitialized value in subroutine entry at
/usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm
line 202.
Bad arg length for Socket::inet_ntoa, length is 0, should be
4 at
/usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm
line 202.


I guess this is really simple, but it's late ... what am I
doing wrong?

cheers

D


-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com
danmcb.vox.com
danmcb.blogger.com
BTW : 0873928131

_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/

Re: test server with -host
country flaguser name
Germany
2007-06-18 18:10:47
* Daniel McBrearty <danielmcbreartygmail.com> [2007-06-19
00:50]:
> if I try -host all or -host=all I get:
> 
> [info] engoi powered by Catalyst 5.7007
> Use of uninitialized value in string eq at
>
/usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm
line 197.
> Use of uninitialized value in gethostbyaddr at
>
/usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm
line 202.
> Use of uninitialized value in subroutine entry at
>
/usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm
line 202.
> Bad arg length for Socket::inet_ntoa, length is 0,
should be 4 at
>
/usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm
line 202.
> 
> I guess this is really simple, but it's late ... what
am I doing wrong?

Uh, `all` is not a valid IP address. 

It looks like the server does bind to all addresses –
check with
`netstat -lpt`, you should see it. But by default the
`allowed`
option in Catalyst::Engine::HTTP::run is set to only permit
connections from 127.0.0.1, if I’m reading the source
right, and
unfortunately myapp_server.pl provides no way to set a
different
value for that option from the command line.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/&g
t;

_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/

Re: Re: test server with -host
country flaguser name
United States
2007-06-18 18:36:51
On Jun 18, 2007, at 4:10 PM, A. Pagaltzis wrote:

> * Daniel McBrearty <danielmcbreartygmail.com> [2007-06-19 00:50]:
>> if I try -host all or -host=all I get:
>>
>> [info] engoi powered by Catalyst 5.7007
>> Use of uninitialized value in string eq at
>>
/usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm
line  
>> 197.
>> Use of uninitialized value in gethostbyaddr at
>>
/usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm
line  
>> 202.
>> Use of uninitialized value in subroutine entry at
>>
/usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm
line  
>> 202.
>> Bad arg length for Socket::inet_ntoa, length is 0,
should be 4 at
>>
/usr/local/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm
line  
>> 202.
>>
>> I guess this is really simple, but it's late ...
what am I doing  
>> wrong?
>
> Uh, `all` is not a valid IP address. 
>
> It looks like the server does bind to all addresses –
check with
> `netstat -lpt`, you should see it. But by default the
`allowed`
> option in Catalyst::Engine::HTTP::run is set to only
permit
> connections from 127.0.0.1, if I’m reading the source
right, and
> unfortunately myapp_server.pl provides no way to set a
different
> value for that option from the command line.

This restriction is only for the RESTART command, ordinary
HTTP  
requests can come in from any address.

And yes, by default it will bind to all IP addresses.

_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/

Re: test server with -host
country flaguser name
United States
2007-06-18 19:49:48
On Jun 18, 2007, at 6:38 PM, Daniel McBrearty wrote:

> Hi
>
> trying to run the test server and see it on another
machine.
>
> ./script/myapp_server.pl -help tells me it should bind
to all by
> default, but when I run it with no host option, I can
only see it at
> localhost, not at the ip for the machine (I can see
other webservers
> on this machine).
>
It does bind everything by default, if you can't access it
from  
another host I'd
start by looking at things like hostbased-firewalls on your
development
machine...

-- 
Jason Kohles
emailjasonkohles.com
http://www.jasonkohles.co
m/
"A witty saying proves nothing."  -- Voltaire



_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/

Re: test server with -host
user name
2007-06-19 02:08:18
Thanks. This is quite odd.

The dev m/c is actually a vmware guest running ubuntu on a
winxp host.
That shouldn't affect anything though, it just looks like a
normal m/c
to the network. I can prove that by running lighty and
seeing the home
page from the host.

I can't start the test server on port 80 as myself (yes, I
stopped
lighty) - the daemon is denied permission to be created. I
can do it
as root. Then I can see the page on the linux guest (the dev
m/c), on
the host it appears but is VERY slow if I ask for it by ip
address,
but no problem when I just ask for localhost on the dev m/c.
(WIth
lighty there is noticeable delay.)

Anyhow, whatever the problem is it doesn't seem to be cat,
but some
odd ubuntu/vmware thing. I don't see why cat server would be
slow
binding to 192.168.1.202 but not localhost though.

thanks for the help

Daniel

On 6/19/07, Jason Kohles <emailjasonkohles.com> wrote:
> On Jun 18, 2007, at 6:38 PM, Daniel McBrearty wrote:
>
> > Hi
> >
> > trying to run the test server and see it on
another machine.
> >
> > ./script/myapp_server.pl -help tells me it should
bind to all by
> > default, but when I run it with no host option, I
can only see it at
> > localhost, not at the ip for the machine (I can
see other webservers
> > on this machine).
> >
> It does bind everything by default, if you can't access
it from
> another host I'd
> start by looking at things like hostbased-firewalls on
your development
> machine...
>
> --
> Jason Kohles
> emailjasonkohles.com
> http://www.jasonkohles.co
m/
> "A witty saying proves nothing."  --
Voltaire
>
>
>
> _______________________________________________
> List: Catalystlists.rawmode.org
> Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
> Dev site: http://dev.catalyst.per
l.org/
>


-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com
danmcb.vox.com
danmcb.blogger.com
BTW : 0873928131

_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )