Page 1 of 1

Firewalls and meteohub connection from external webserver

Posted: Sun Oct 02, 2011 9:31 pm
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

Re: Firewalls and meteohub connection from external webserve

Posted: Mon Oct 03, 2011 12:06 am
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?

Re: Firewalls and meteohub connection from external webserve

Posted: Mon Oct 03, 2011 1:03 am
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