This may or may not be allowed by your isp. You should check their terms and conditions.
The method of doing it varies greatly from router to router.
On my router I log in as "admin", open "Advanced settings" and choose "firewall"
Please be careful. You need to find out what you are doing before making any changes to your router's settings.
You can easily make the internet inaccessible from your whole home network.
If you do not have a manual for your router, seek advice from your ISP or download a manual before starting.
Always backup your router configuration locally (not cloud storage) before you make changes.
It is usually pretty safe to assume that these sort of changes cannot be applied to mobile (cell) data connections.
Once the port-forwarding is set up, users outside your local network will need to access your server using your router's external IP address, not the local address (likely 192.168.xxx.xxx) which you are probably currently using.
Please note that, unless you have a fixed IP address, your external address will probably change whenever your router is rebooted or if its connection is interrupted.
In most countries fixed IP addresses are not normally provided unless you request them specifically.
In my previous post I said "It is usually pretty safe to assume that these sort of changes cannot be applied to mobile (cell) data connections."
It works (if it works at all) by making an outgoing connection to pagekite's server
Everything up to the pagekit bit can be done with the "HTTP Server" sample that comes with DroidScript.
If you decide to try pagekit please be aware that you are doing so against my advice.
It only works if the Dynamic DNS server is outside your local network.
If you are going to use one of those, choose one that has a JavaScript API so you can write some updater code in your DroidScript code.
However, you are unlikely to get this working with only a phone.
Anything you are describing will need interaction with some outside website.
function getIpAddress()
{
app.HttpRequest( "GET",
"http://bot.whatismyipaddress.com",
"/",
"",
HandleReply,
"" );
}
function HandleReply( error, response )
{
if(error) txt.SetText("failed");
else txt.SetText(response);
}
Now, as regarding the port forwaring:
Be careful, because your ISP may not allow port forwaring for some reasons.
Your router or modem firewall may not allow external port forwarding. Only internal. Go to your router settings and disable firewall or use a firewall level that allows you to port forward.
Always add your device that is used as a web server to a DHCP static lease! Always! Otherwise the router after the DHCP lease time will not be able to port forward your device as it's IP will(may) have changed!
DroidScript can be used for creating a web server that can be port forwarded. I have tested this.
Just create you web server app and then set the port forward options to your router.
app.CreateWebServer(8080);
app.GetIPAddress();
This is all you want.
Just go to your router's NAT settings in the Port Forwarding option and add your web server.
Active: true
Type: WWW
Internal Port(s) : 8080-8080//use the same port
External port(s) : 80-80
Mobile phones in most countries do not allow inward connections
If you are connecting to the internet via a router you can usually reconfigure the router to accept incoming traffic on a range of ports.
You cannot do that with a mobile phone.
There is no way to do the same thing if the phone is online through its own data connection instead.
That is how all social media works for everyone, whether they are connecting from a phone or any other way.
If you think you should be able to receive an INcoming connection to your mobile phone over the data connection ask your mobile phone provider
https://developers.google.com/drive/api/v3/quickstart/js
But I don't understand why you got stack with GooglDrive. Google Firestore allows you to upload folder and files realtime! Why did you reject the Google Firestore solution? Is there any specific reason?
Regards
The answer to this is normally to set up port forwarding.This may or may not be allowed by your isp. You should check their terms and conditions.
The method of doing it varies greatly from router to router.
On my router I log in as "admin", open "Advanced settings" and choose "firewall"
Please be careful. You need to find out what you are doing before making any changes to your router's settings.
You can easily make the internet inaccessible from your whole home network.If you do not have a manual for your router, seek advice from your ISP or download a manual before starting.
Always backup your router configuration locally (not cloud storage) before you make changes.
It is usually pretty safe to assume that these sort of changes cannot be applied to mobile (cell) data connections.
Once the port-forwarding is set up, users outside your local network will need to access your server using your router's external IP address, not the local address (likely 192.168.xxx.xxx) which you are probably currently using.
Please note that, unless you have a fixed IP address, your external address will probably change whenever your router is rebooted or if its connection is interrupted.
In most countries fixed IP addresses are not normally provided unless you request them specifically.