Mobile development with Rails using Wi-Fi network - Configuring url's - ruby-on-rails

It's common when developing a web application to want to test it on mobile devices to ensure touch fallbacks and responsiveness.
As it happens, it's easy to do this over a Wi-Fi network. You just join the network on both your computer running the localhost and the mobile device you want to access it on and then enter the url on your mobile device:
http://<YOUR_COMPUTERS_IP>:3000
replacing <YOUR_COMPUTERS_IP> with your computer's ip address and 3000 with the port you are using.
This worked for basic routing.
The site i'm now working on however uses dynamic subdomains (users get their own subdomain) so is there any way to configure this to work with any subdomain?, so that you would be able to access
http://<SUBDOMAIN>.<YOUR_COMPUTERS_IP>:3000
on both your mobile and computer.

You can't put a subdomain onto an IP address directly, but there is a service called xip.io that was built to do just this.
http://<SUBDOMAIN>.<YOUR_COMPUTERS_IP>.xip.io:3000

Related

Autodesk Forge API doesn't work behind firewalls

I followed the tutorial on learnforge.autodesk.io and was able to create a functioning app that accesses data from Construction Cloud and displays them using Forge viewer. The problem is, I'm not able to access Autodesk's login screen behind a firewall (which usually happens when sales team visits a client's office).
For what it's worth, I'm using ExpressJS for backend and have HTTPS enabled. The firewall at client's site also blocks access to virtual machine services like Parsec.
I don't even know exactly what the problem is (or how to troubleshoot), all I know is that this login link:
https://developer.api.autodesk.com/authentication/v1/authorize?response_type=code
&client_id=<client_id>
&redirect_uri=<callback_url>
&scope=<scope>
doesn't work behind a firewall (it works fine through mobile data hotspot though).
So is there anything I can do on my end to make it work?
If that's not possible, what must the client do in order to access my app from behind their firewall?

App Engine as iOS Backend

I'm quite new to backend dev, and Google cloud seemed like a good option for hosting a Golang API for an iOS app.
Recently app started requiring that the app should be accessible in a IPv6 only environment, and I was wondering if Google Cloud App Engine can provide me with that.
Thanks in advance!
Yes, a blog post in 2010 the GAE team stated
The Google over IPv6 program allows ISPs with good connectivity to request IPv6 access for most Google services. In about a week, we'll be adding Google App Engine and the appspot.com domain to this program. This means that all App Engine apps will become accessible over IPv6 to anyone participating in the program!
For most people, this won't require any changes to your code at all. If your App Engine code reads os.environ["REMOTE_ADDR"] in Python, or HttpServletRequest.getRemoteAddr() in Java, be aware that this value may be an IPv4 address, like "192.0.2.1", or an IPv6 address, like "2001:db8::1". Now is the time to verify that your code doesn't make any IPv4-specific assumptions, so that your IPv6-ready users will have a seamless transition.

How to store client names that've accessed wifi via captive portal?

I'd like to setup a captive portal for an open wifi network, where users can access the internet by only entering their first names.
The aim of which is to build a list of first names currently connected to the network. Ideally this setup would remember MAC addresses and be able to greet returning clients (on an external display) the next time they automatically access the wifi network. (Can clients access the internet without having to re-login through captive portal?)
Thanks
One solution is to create an SQl database and store in it the first name and the MAC address of the client.
When the client log again you juste have to make a simple SQL request to find the name associated to the MAC address

What ports & outbound domains are used for trigger.io's Reload service?

I need to deploy a trigger.io app on a wifi net with a heavy firewall. What ports will the net need to have open to function properly?
I'm guessing the answer is ports 80 and 443, with outbound access to trigger.io and maybe (guessing here) reload.trigger.io.
Can anyone confirm the correct access requirements? Thanks!
All the reload requests are done over HTTPS (port 443), the domains accessed are trigger.io and s3.amazonaws.com.
That is unless you use the external reload feature, which downloads the resources from the domain you specify.

Device access through Rails on LAN

The device I am attempting to access is a PLC with a built in web server. I am trying to pull data through the PLC's unique IP address. I have a computer running the Rails application sitting inside the same Local Area Network as the PLC. With the computer still INSIDE the network, can I access a device IP through my Rails app? I'm not sure how the request works. Will Rails move directly to the ISP and search that way or will it scan the local network first?

Resources