Firewalls and meteohub connection from external webserver

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
jockos
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: Wed May 14, 2008 4:34 pm
Location: Majorca
Contact:

Firewalls and meteohub connection from external webserver

Post by jockos »

Hello,

I have a website(http://www.meteocalamillor.es) that displays weather report every 15 seconds from my weather station. To do this I have a php parser:

Code: Select all

$xsl_filename = "infometeo.xsl"; //XSL file
$xml_filename = http://mystation:1212/meteograph.cgi?text=allxml         //XML file

$doc = new DOMDocument();
$xsl = new XSLTProcessor();
$doc->load($xsl_filename);
$xsl->importStyleSheet($doc);
$doc->load($xml_filename)

echo $xsl->transformToXML($doc);
The connection to meteohub through port 1212, but my web-server blocks connections to this port(all general ports). Is there any alternative way to connect with meteohub?

Thanks
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7879
Joined: Mon Oct 01, 2007 10:51 pm

Re: Firewalls and meteohub connection from external webserve

Post by admin »

You can also reach the Meteohub http server on port 7777. Why don't you go through it via port 80? If that is alrady used on your router, try 8080, maybe this works, or you hijack one of the lower port (ssh, smtp, etc.) on your router WAN port. If your Webserver has to go through a proxy, you might be completely out of luck with "non-80" ports. Can't you live with Meteohub uploads each minute via FTP?
jockos
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: Wed May 14, 2008 4:34 pm
Location: Majorca
Contact:

Re: Firewalls and meteohub connection from external webserve

Post by jockos »

The port 8080 and 7777 are disabled in my web hosting. I now, as an alternative, I'm using port 25. I think the best solution will be to upload the data every minute through FTP. How often are date updated by WDLive or Saratoga-Weather plugin?

Best regard,
Alex
Post Reply