I think you're going to need to supply more information.
In the first place, please put <code> tags around the Client program to make it readable. (It would also be helpful to label it as the Client program, the way you do with the Server program).
Secondly, you should be mention what the PeerAddr should be changed to (I'm assuming the address of your local host, if Client and Server are both running locally). Without that information, people may get frustrated when they get the error:
Socket could not be created. Reason: Invalid argument
Thirdly, there's a bug in your Server program. You apparently have an extra else keyword which should be removed.
Finally, please give clear, precise and simple instructions how to run the programs. Don't assume that everyone will intuit that the Server program has to be run first, and the Client program second. You should state the steps to follow, what output you expect to get, and what output you are getting, and specifically what it is that you think is incorrect. When I run the Client, it seems to work fine for me:
C:\Documents and Settings\liverpole\Desktop>ioclient.pl Client Connected. Server says: You've reached the server port # 1204 Ping result =>: reachable www.yahoo.com
Is this the same as you're getting? Is it different? And in what way does it differ?
If you can make it simple and easy to reproduce the problem, you will get better and quicker responses, with a higher probability of a useful solution.
In reply to Re: Net::ping is failing. Any reason?
by liverpole
in thread Net::ping is failing. Any reason?
by rockmountain
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |