thanks again you have been very fast.
So, how do I know the WAN IP of my connection? I use that site you suggested? I have a dynamic IP address, but I should have static IP right? I studied a little to understand the differences and then, to have a static IP, I have to use a server for a fee?
to understand this thing, what should I study? I'm sorry, but it is very important for me to make this app for my software, I have many people waiting for this app ...
This is My Software realized with MMF2.5 dev
Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
-
-
Hi
Yes you use the website Please login to see this link. to find your WAN IP.
If your IP is dynamic then you have two options. One is to call your ISP and ask to have static IP instead (this might be free or they might cost you an extra small fee each month from your ISP)
The other option is to use a free domain service like noip.com and create a domain name for your IP and have your router to automatically update the IP when it changes (if your router supports that)If not you have to check the WAN IP manually when you no longer can connect and update the IP address in the Android remote app.
So this is something that you might want to create a guide for, for your customers. How to open ports, find the WAN IP address etc etc.
The other way that would be much easier for your costumers is to have a central server to connect to that relays the information. In order to do that you need to either have that central server hosted on your computer 24/7 or rent a dedicated server that allows you to upload your custom server software and run it. This will be the best for your customers but will cost you monthly. -
Daniele, your software looks excellent, one of the best interfaces and design I have seen. I am sure your programming of the software is excellent too. I already created a very robust lacewing server with SQLite built in. Please login to see this link.
I have the server documentation and client examples for you to design your application around the server. All you need to do is place the server on a workstation, port forward the ports tcp/udp in the router and you can server it over the Internet. It has built in 256-bit encryption so all data can be transmitted securely over the port. Built in SQLite will allow you to store client data securely making all information cloud based.
-
Thanks Mike, thank you for appreciating my work. I unfortunately do not have the basis to understand and control my system from an app. The 'example with lacewing is being studied, I have seen it work, but I find it difficult to get into my modem and configure it with a static IP. I need someone to assist me in achieving this,
naturally under compensation. Or you can help me step by step when you have time? You've been very kind ... tank Mike and thanks Decal -
In order to open ports you need to access your router IP (the gateway ip of your connection). Usually it is 192.168.0.1, 192.168.1.1 or 10.0.0.1
There you need to look for something called NAT, Virtual Server or Port Forwarding.
There you need to enter the local IP address of the computer, and then the port (sometimes it is a port range so just enter the same port in every field asking for the port) and then select UDP/TCP and click add. And then save.If you know what router you have you can look for a guide for just that router here: Please login to see this link.
Once that is done, you should be able to connect to the server through internet using your WAN IP.
-
Thank you ... today I made the first Android app on my samsung 6s and I tried to install the file you sent me:
Android remote app.
I launch the 'Application "main app Software" from my pc and I open the connection. After launching the app from my Samsung "Android remote app" and open the connection, the connection fails. If the two mmf2 applications are open on the same PC, the connection is working well, I know if the two files that you have made me, can only connect from the same computer?I want so much to have an app that talks to the My Home Automation Software and I think that is possible, but I have a hard time doing this with the app for Android.
I repeat ... the app works well on Samsung device, but not the connection is made.I had to change some things to have a compatibility with the mobile device, but I have changed the code. Please, I worked many days for this and I need to have this app to manage my switch on lights, electrical outlets, status, etc. sensors.
-
Did you change the connect IP for the mobile app to the IP address of the computer? If you are testing on a local network use the local IP of the computer that is running the main software, if it is over internet use the WAN IP and make sure the port is open to the local IP of the computer running the main software.
-
Hello, thank you again for your help, I'm trying for two days, but I did not get a result. I have read many times what you have written to me, I have also studied some topics to understand how it works through a network share.
Please, I would like to figure out how to make a dialogue between the two software that you have given me with two different connections.
Works if the two files are open on the same computer, they use private IP address.
When I try to load Android on the file, using the 6121 port by default IP address, not the connection is made.
I searched the site to see my public IP address and I wrote that address the default situation, but also with this address, the connection fails.
The site appears to me this address:
2227127195 and port as I 80By entering these values, the connection fails.
I want to understand how to do this thing, it is very important -
Hi Decal,
please, I need your advice, at least for this step.
I have a 'friend who knows router, ip, server and remote connections and I'm trying with him to use your app as a client.
My router does not open any door, you can open several doors, mapurtroppo my modem is closed.
I have a static IP, and I tried to use the app on Android to interact with the software on the PC, but it does not work.
I gave my friend the app and the main software because he has no connection problems, but he, too, it was not possible to talk apps and software.
He has tried with the same wifi and with a wifi connection for main software and a 3g connection with app on Android, but it does not work.
You told me that these two examples can dialogue with different connections, confirms this to me?
The port that is using my friend is open and public.
Your ip is dynamic, but has also tried with static ip.
Please, I'm trying for several days and this app is very important, I ask you to help me ... please.
lacewing server, requires a particular connection? or registration? -
I solved the problem. I found an 'example of using the chat server:
server2.dark-wire.com:6122
I tried the chat on two different devices with two different connections and chat works well. I can use this system to have a communication between app and Software?
I can use this server with the two examples you sent me? Apps and Software?
My greatest fear is that one day this server will no longer be present. In this case, what should I do? -
Daniele, I don't recommend using a public server. You should host your own private server. I included a link in the post if you want to use the lacewing server I created. You only need to learn the syntax, if you want to use the built in SQLite with it. All you need to do is port forward the port you want to use, in the router and you're good to go.
-
Thanks Mike, finally an answer
Thanks, but it's not a problem for the public server, the data transmission is encrypted with a code then, whoever receives these data do not know what they are. example, to turn on a light send this data:
wx1342xiw8-id1-1The app sends this data and the PC with home automation softwarte recognizes him.
Each client has a code for the 'sending and receiving.
Now, my problem is a 'more ... everything works if the two software running under Windows, and even on two different connections. The problem is when I export on android lollipop samsun S6. When I connect with the app on Android, the chat does not work. I create a user name and then I start the same program but works on windows. What works on windows, one on the app does not work ... I also did the 'upgrade to lacewing client relay.
Why of the app it does not work?
I used objects compatible with Android -
I think MikeB is suggesting not to use a public server not (or surely not only) for safety reasons,
but because -as you said before- nobody grants you it will always be up & running.I've not completely understood if you're port-forwarding only your home pc to use as a central server (reliable and always-on machine?)
or if you will be asking customers to install their server-app in home pcs and port-forward their routers?Going with a client app and port forward is surely a cool and technically performant solution,
and scrolling past messages I praise at Decal impressive work and kindness in assisting this issue and providing cool examples.But I keep suggesting what I was saying in first posts:
a customer-server would be not optimal considering to tell customers doing port forwarding etc.
customers with few technical skills could be a little downset by this / could not be happy to open up their portsI would definitely consider purchasing a web domain, prices are quite affordable,
and you would have a more reliable and customizable solution.
Don't you already have your own company website?
I'm sure you can get in touch with hosters and ask them what it takes to upload and keep running your lacewing tool,
or if they don't want to / require higher fee --> setting up some small server script just relying messages through home clients/server
if you don't know how to there would be surely software guys around doing this for a small feeFusion tutorials for online scoreboards could even be enough for this
(you update some data on the server, your clients polls the server at time intervals to get its latest instructions) -
Thanks SCHRODINGER for your suggestions.
Unfortunately I exclude port forwarding because it is not easy to open a door for the average user, and it is not always possible to open a port for your router. I for example I have a contract with Fastweb and my router does not allow to write the DNS and does not open the doors.
what it costs to buy a server like the one I used for this chat? in this case I have no fear that this server can be closed if I pay to keep it open. Use third-party servers is not convenient because it may close at any time.
why this application does not work this chat on smartphones? my main problem is to understand because the file I posted, if converted for Android does not work. You know you help me?
The program works, but it seems that does not communicate with the server -
I'm sorry I can't help you with Android communications as I havo no android device,
would only be able to test on a pc emulator and that would make my answer not reliable.I agree with you port-forwarding customers would have been not an optimal solution,
this is why I'm suggesting a simple and reliable server-side solution
that would only imply a database (you could even already have it in your labdomotic.com domain?)
and very little application server scripting (maybe you have .php capabilities on your domain?)Sorry, don't want to confound you,
but just as you may consider this alternative option,
I'll briefly describe it:1) customers client remote apps (in their smartphones) connect to your domain filing the request
----> as simple as connecting to www .Please login to see this link.2) server script accepts the request (checks for user & password against your customers database)
and sets the value in the database (i.e. "temperature=20") and maybe "flags" this database row "has_been_changed"
this is a very simple script you could find examples even in this forum on how to setup3) home-domotic app polls every minute or so (if this is an acceptable time frame)
for "has_been_changed" lines in its own database reference
----> as simple as connecting to wPlease login to see this link.
and retrieves modified lines to apply changes ("temperature" has changed? set "temperature" to 20, ^ in the example)No lacewing needed, no need to upload a server app and keep it running,
solid & reliable domain (yours XD), quite inexpensive: just needs a database and some small scripting.other pros: you have all your customers real-time status stored in your database and can easily assist them on need
(you could even consider making a login page for them and letting them change settings from a browser)cons: home-domotic server response would be less "immediate", but I think a 1-minute lag could be acceptable in this application?
(and time frame to poll could be smaller anyway, just said 1 minute to avoid excessive unneeded requests to the server) -
You been very thorough ... Unfortunately, one minute is a lot, even 10 seconds are so many.
My home automation system is very complex and large. For now use teamviewer as a remote control, and the times are very fast, up to 2 seconds of latency.
The system that I tried with the chat and the public server is very fast and for me it was an easy to manage solution.
I do not require a database, my Software has one inside. The one that I need, is a control for lights, sockets, temperature, etc., and I have to have the 'access to view and control.
I wanted the easiest way for me and for the customer.
I would like to have a server as the one used by lacewing, but I have one that I use my available for my clients.
Could I have a dedicated PC for this application always on, you can do this?
My site is made with jimdoo and I do not think I can write a php page, I just know that I can insert script. -
I see... if response time is a issue, then yes, lacewing would provide a better solution.
Although one could theorically poll at 1-second intervals, but I wouldn't recommend this
(better looking into Please login to see this link. or Please login to see this link. then - something I've never used unfortunately)If you have a dedicated pc you can definitely use it as a server
(doing all the stuff you did up to now: port forwarding, keeping your lacewing server app running,
obtaining a static IP or taking advantage of dynamic DNS services such as Please login to see this link.)
wouldn't be as reliable as a hosting company webserver (on paper!) but could probably be enough for your needsYou seem to be already close to this setup then?
If the only thing you miss is debugging the android app, sorry again but can't helpOnly thing I can think of is if you checked "permissions" on Android application properties
(could require "internet" i.e.) and maybe your firewall settings to accept external requests -
Always nice to see how flexible Fusion can be! Nice job!
-
I didn't know this was possible to do in Clickteam Fusion.
Impressive!
-
Everyone knows MMF2 as a platform for making games, I have used this tool for automation and home automation. I was able to realize the hardware interfaces that could be managed by MMF 2 and due to the "serial object extension" I could use Arduino well as the acquisition of more than 96 digital inputs and 20 analog. I love MMF2, it has allowed me to realize a big project.
Can someone help me understand why if I convert the files for Android, the chat does not work? I used only compatible extensions ...
-
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!