Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Perl Sockets Problem

by serf (Chaplain)
on Oct 20, 2006 at 12:48 UTC ( [id://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 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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://579564]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-20 10:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found