in reply to Perl Socket programming problem

Most of your questions can be answered by reading "perldoc perlipc" (or perlIPC TCP sockets) and trying things out.

If you have an actual problem or issue understanding a concept, or error, please post back here, and we will be happy to assist.

Specifically:

             When in doubt, mumble; when in trouble, delegate; when in charge, ponder. -- James H. Boren

Replies are listed 'Best First'.
Re^2: Perl Socket programming problem
by sarf13 (Beadle) on Dec 03, 2013 at 19:02 UTC

    Is there any way to pass data across the machine running both server and client script at one machine only?: YES - use "localhost". Your code already has that.

    On above mentioned point how i can pass data to server let say machine M2 from machine M1 (client) without running the server script since i don’t have control on server side and i cannot execute any script over server

    based one given parameter like IP, port, protocol(TCP) i need to pass massage packet(data) I have to login to server and send data and capture return server value. Could you please help me out on this

      If you cannot run code on the server, you will need to use an existing service provided by the server. (It is not a server unless it provides services).

      One example of a service is a web server. If your server accepts http or https connections, you can send it data (packets) using that protocol.

      You need to have an existing, usually permanent listening endpoint, in order to be able to send on-demand data.
      This is what the server is supposed to provide.

      When you have information on the port, protocol, and authentication required by that server endpoint, you can plan on how to connect to it.

                   When in doubt, mumble; when in trouble, delegate; when in charge, ponder. -- James H. Boren