in reply to Re: Internet connection 4g modem
in thread Internet connection 4g modem

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.

Replies are listed 'Best First'.
Re^3: Internet connection 4g modem
by choroba (Cardinal) on Nov 21, 2016 at 17:17 UTC
    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?