Web Hosting Forum | Lunarpages

Author Topic: IO::Socket problems  (Read 1945 times)

Offline jewelrybox.erol

  • Newbie
  • *
  • Posts: 2
IO::Socket problems
« on: May 23, 2014, 05:03:12 AM »
How do I write to a socket from the server using Perl.
I am not able to connect to the server port.
I'm on a shared server.
The server port is 80.

Offline mikewashtm

  • Intergalactic Cowboy
  • *****
  • Posts: 56
Re: IO::Socket problems
« Reply #1 on: May 25, 2014, 09:55:04 AM »
http://perldoc.perl.org/Socket.html

Have you tried that already?

Offline jewelrybox.erol

  • Newbie
  • *
  • Posts: 2
Re: IO::Socket problems
« Reply #2 on: June 10, 2014, 01:05:02 PM »
I tried using the IO::Socket module.
I'm not sure if I'm using the correct port and hostname.

Offline MrPhil

  • Senior Moderator
  • Berserker Poster
  • *****
  • Posts: 5998
Re: IO::Socket problems
« Reply #3 on: June 10, 2014, 03:55:22 PM »
On a shared server, you will be severely limited in the kinds of things you can do. I wouldn't be surprised if you're not allowed to access any ports. If you haven't done so already, I'd open a support ticket and ask them if you're allowed to do this thing. If not, tell them what you trying to accomplish, and maybe they can tell you an alternate approach.
Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-

 

Share |