Skip navigation
Currently Being Moderated

fsockopen alternative

Apr 8, 2013 7:16 PM

Okay so I just discovered through godaddy standard hosting I can only fsockopen to ports 80 or 443, nad it costs so much for a vps or dedicated server. I need to access port 25565, is there any other way to do this avoiding the fsockopen command? I'm pretty new with PHP so I might need a little bit of help/detail.

 

Here is my code:

 

http://pastie.org/7379010

 

(sorry for the pastie but no matter what I tried some weird formatting kept appearing.)

 
Replies
  • Sudarshan Thiagarajan
    4,000 posts
    Oct 15, 2010
    Currently Being Moderated
    Apr 8, 2013 10:19 PM   in reply to Gabriel McKenna

    Shared Hosting environments on 99% webhosts firewall higher ports such as 25565 - which is the main reason you're unable to open it via GD Shared environment.

     

    On a sidenote, are you trying to access a minecraft server - because you're so specific about port 25565?

     
    |
    Mark as:
  • Sudarshan Thiagarajan
    4,000 posts
    Oct 15, 2010
    Currently Being Moderated
    Apr 9, 2013 4:44 AM   in reply to Gabriel McKenna

    Okay. But how are you running MC on a Godaddy shared hosting? They dont let you run one unless you have VPS or Dedicated, do they?

     

    Assuming the MC server is hosted elsewhere and you're on a shared server and would like to just check the status of your MC server, you could use this: https://github.com/redwallhp/MCServerStatus

     

    It's a great plug-in made with PHP to check the status of MC servers.

     
    |
    Mark as:
  • Sudarshan Thiagarajan
    4,000 posts
    Oct 15, 2010
    Currently Being Moderated
    Apr 9, 2013 5:54 AM   in reply to Gabriel McKenna

    You're welcome!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points