The server listens on the port 3030 and I use the browser to surf the web client - in the browser I call the server using:

http://server_address:3030/index.html

The logs says that the server is up and listening - here what I got after running the server:

 Listening at "http://*:3030"

Now, if I run the script directly from the linux machine and I open the web page using the url above - the page is loaded.

But if I run the ssh command to run the server from another machine - the server says it is running and listening - but the link won't open while the server is up in the machine.

when I run the server from another machine I get the following data in the server machine:

>ps -ef | grep server_file root 23261 1 0 09:57 ? 00:00:01 /usr/bin/perl server_fi +le >lsof -i perl 23151 root 3u IPv4 8412377 0t0 TCP *:3030 (LISTEN)

but when I run the server from its own machine - I got the following data:

>ps -ef | grep server_file root 24163 22640 9 11:12 pts/10 00:00:00 /usr/bin/perl server_fi +le >lsof -i perl 24163 root 3u IPv4 10196650 0t0 TCP *:3030 (LISTEN +)

In reply to Re^4: Run Perl Mojolicio Server from SSH by iseif
in thread Run Perl Mojolicio Server from SSH by iseif

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.