Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Phone and Port Forwarden


Question

Posted

Hello,
I have a question about Port Forwarding. I had already searched here on the forum about it , but it will not work correctt. What have I done. See VD script and script to activate it .

Have an app downloaded PF and have it put on a port eg 37503 .

 

VD script :

tcpSocket = Net.FTcpSocket("192.168.0.65", 37503) 

bytes, errorCode = tcpSocket:write("test") 
 
if errorCode == 0 
then
fibaro:setGlobal("PapaPhone", "1");
else
fibaro:setGlobal("PapaPhone", "0");
end
 
Script to activate:
 
--[[
%% autostart
%% properties
 
%% global
PapaPhone
 
--]]
local TimeRun = (10*1000)  --sec
local VDPingPhone = 660 -- VD id
local startSource = fibaro:getSourceTrigger();
 
function tempFunc()
 
fibaro:call(VDPingPhone, "pressButton", "1");
fibaro:call(VDPingPhone, "pressButton", "2");
 --print("Locating")
setTimeout(tempFunc, TimeRun)
end
 
if ( startSource["type"] == "autostart" ) 
  then tempFunc()
  end
 
if fibaro:getGlobal("PapaPhone") == "1"
  then fibaro:debug("Thuis")
  else fibaro:debug("Weg") 
 end

 

Also tryied forwarding on my router

 

on my phone a have a app to run open ports

 

when i start the PF on my phone i see on the app open port scanner that 37503 is open

 

when i start the activate script i see in the variables that it works

but after a few sec its gone and the scanner dont see anny open ports

the longest time is about 30 min and than gone and gomes only back if i restart the PF on my phone

 

who can help mee

 

regards Kage

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...