Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Net::Telnet - cant able to connect from public IP to public IP

by sris (Initiate)
on Jun 24, 2004 at 11:56 UTC ( [id://369299]=note: print w/replies, xml ) Need Help??


in reply to Re: Net::Telnet - cant able to connect from public IP to public IP
in thread Net::Telnet - cant able to connect from public IP to public IP

hi Abigail-II

Manually i can able to connect to that system but programatically

i am not able to connect as i am having doubt in the prompt syntax

my $t = new Net::Telnet (Timeout => 150, Prompt => '/^ <-\>/', Errmode => "return") ;

in the above statement the syntax which i used for prompt is '/^ <-\>/'

actually it is working properly for one system,

but it is not working properly when i change the ip address in the coding

i think you got it and kindly help me

it is not displaying any errors also

  • Comment on Re^2: Net::Telnet - cant able to connect from public IP to public IP

Replies are listed 'Best First'.
Re: Net::Telnet - cant able to connect from public IP to public IP
by Abigail-II (Bishop) on Jun 24, 2004 at 12:06 UTC
    Different accounts may have different prompts, so if your regex is working for one system, that doesn't mean it should work for another system.

    If you can't give any details on where the process goes wrong, don't expect many useful answers from us. All we can do is guess - you might get lucky and someone will guess right. But having people have to guess isn't very efficient.

    Abigail

      Hi Abigail-II,

      first i tried to execute this coding, to connect to a system i got

      the output(where first time both the systems are in private IP),

      after that i changed the IP address of

      my system to Public to access the files from the other system

      where it is already in Public IP

      First Case

      Private IP System1 <============> Private IP System2

      it executed and got output

      Second Case using the same code

      Public IP System1 <===============> Public IP system2

      it executed but i am not getting output

      it is not displaying any errors also

        That doesn't tell anything new, does it? It works for one system, it doesn't work for the other. Most likely, something is different between both systems - or in the network between them. Your program works for one system, so it doesn't seem your program contains any fatal bugs. And nor do you get any errors, so the Perl site seems to be ok. We don't know your network, we don't know your machines.

        Abigail

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-24 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found