http://qs1969.pair.com?node_id=1176259


in reply to Internet connection 4g modem

Hi mic537,

But Strawberry Perl does not connect to internet through my 4g modem, while ActivePerl connected well.

What does this mean - are you using a Perl script to connect via a modem? Are you using any Perl modules for this, and could you show a short, runnable piece of example code that demonstrates the problem? Please see How do I post a question effectively? and Short, Self Contained, Correct Example.

Regards,
-- Hauke D

Replies are listed 'Best First'.
Re^2: Internet connection 4g modem
by mic537 (Novice) on Nov 21, 2016 at 16:51 UTC
    I try to install module through cpan - and receive: module LWP failed with code500 And also I try with my program ( pl converted to exe) which worked well on Ethernet, and through modem it failed on lines: my $sock = new LWP::Socket();  die "Can't bind a socket" unless $sock->bind('127.0.0.1', '8080');

    impossible to open socket when modem is found on PC.

      Do you really use 127.0.0.1? If so, the modem isn't involved, as 127.0.0.1 is localhost . Are you sure the webserver is running on port 8080?

      ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
        Yes, It works OK with Ethernet. localhost:8080/site.html works OK after webserver is launched. But when I connect 3g modem with dedicated program for it ( with Ethernet off), it fails to make socket and LWP too. Internet through modem works OK. BUT! When I had ActivePerl it successfully connected to Internet by those modem and I easily installed modules through ppm and cpan. And I launched this webserver and it works on localhost! What is the difference between ActivePerl and Strawberry in that case?