Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^2: Perl Sockets Problem

by serf (Chaplain)
on Oct 20, 2006 at 12:48 UTC ( #579564=note: print w/replies, xml ) Need Help??

in reply to Re: Perl Sockets Problem
in thread Perl Sockets Problem

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 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, I'll change the 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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://579564]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2018-04-27 01:29 GMT
Find Nodes?
    Voting Booth?