Device access through Rails on LAN - ruby-on-rails

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?

Related

How debug ASP.NET Core MVC application using a mobile device?

I would like to access a debug session from my ASP.NET Core MVC application from another device. For instance, normally the iss is bound to localhost:port. How can I access this by using another network device at 192.169.0.???:port.
In other words... I want to press "F5" to start debug session. The same way I open a local browser and browse to the ISS localhost, I Would like to open a browser in another device (mobile or pc) in the same network and browse my application by network.
typing the developer machine ip from another machine does not works. By the way, typing the local ip address does not work either. It only works by typing "localhost".
Is that possible using visual studio 2017?
I think you want to use this remote debugging approach? It requires installing something on the remote server for it to work. You have to use Visual Studio so it requires a computer supporting that. Your subject says "mobile device", so I wasn't sure what you meant by that.

Elasticsearch access policy - allow read from clients and read/write from Node.js server

I've got an AWS Elasticsearch server that I'm using to power search in my iOS app. I'm using Alamofire to make search requests from the iOS app, and I've got a Node.js server to manage the relationship between the Elasticsearch index and my backend database and keep the index updated whenever my backend gets new data.
How can I restrict the access of the iOS clients to read-only, but also have read/write access for my Node.js server?
I don't think I would let an iOS client touch ES directly.
I would send those GET requests (assuming they are GET requests) to your node server and then let node send them along to ES.
I would never expose ES to the outside world, especially to untrusted sources.

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

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

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

Communication between Windows service and applications in different user sessions

I have the following situation:
Windows Server environment with multiple user sessions.
Windows Service is listening on well known port.
Tray application in each user session which is started automatically.
Silverlight (SL) application is running in browser and communicating with Windows Service using sockets and predefined port.
My goal is the following: user interacts with SL application, SL application communicates to Windows service using sockets and afterward Windows service should communicate to proper tray application which located in the same user session like browser that initiate call.
Communication between Windows service and tray applications is planed to be done using named pipes.
Question: how to define/transfer names of named pipes to Windows service to establish right (windows service -> tray app in correct user session) connection?
I don't find exact solution for described problem. But it is possible to use custom protocol concept.
SL application generates custom protocol links and registered application handles such links in user session. Afterwards such application can establish two-way communication with Windows Service that is listening on well-known port.

Resources