Hi jesuashok,

I appreciate that it's just an example, but if you read about it, e.g. at wikipedia: TCP_and_UDP_port you will find:

In both TCP and UDP, each packet header will specify a source port and a destination port, each of which is a 16-bit unsigned integer (i.e. ranging from 0 to 65535),

That means there is no such port as 90000, therefore your example:

telnet 10.10.10.10 90000

is not possible. (I can see it's not a typo on your part because you've used the same number twice in your post)

If you're giving people examples to try it's probably more helpful if you can give them realistic and workable snippets to try, not random things that will never work.

Someone reading your post who doesn't know much about IPv4 might think, "Ah, I know my IP address is 192.168.254.100, I'll change the 10.10.10.10 to *my* IP, get my script to serve on port 90000 and try connecting to it" - and you've just given them yet another problem to have to fix before they can get their script running - that is figuring out why they can't use port 90000.

serf


In reply to Re^2: Perl Sockets Problem by serf
in thread Perl Sockets Problem by shadowoflinux

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.