in reply to Socket Connection issue

what is in "$LOCAL_STATION" and "$SOCKET_PORT_2ND" if "$LOCAL_STATION" is localhost or something similar(127.0.0.1) then client won't be able to connect from a different machine.
check with 0.0.0.0 in "$LOCAL_STATION"

if you want to check your socket server use plain telnet as a client(before complaining about client).
you can use netcat(unix) command also as server to check client if client is proper and has no connection issues.
see Markup in the Monastery before putting code


Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.