local-network

C# application control local network iOS

こ雲淡風輕ζ 提交于 2021-02-11 06:29:02
问题 I'm in the middle of the process of making an application on Windows in C# and I want to make an IOS and an Android program. Things are going well, but I'm kind of stuck on implementing the requirements for proper network communication. I've searched a lot on sockets and I'm quite sure that I have to use that but I don't know for sure. I can't really find much about it. So I was wondering if you guys could point me in the right direction. So my question basically is how to establish

How to print from the webserver to the local network printer directly using phone or tablet browser?

女生的网名这么多〃 提交于 2021-02-08 11:37:59
问题 I have got a Network Printer (POS Printer) connected to my router and I have the printer's IP and Port. I want to send printing instructions directly from the webserver. For example, if I visit example.com/print.php it’ll send the instruction to my local network printer and start printing. It is important that this web page can be visited from any device on the same network and able to send printing instructions to my local network printer. This is what I’ve so far, using localhost/print.php

Cannot access sinatra app through the local network

£可爱£侵袭症+ 提交于 2019-12-20 14:10:56
问题 I have rails application. If I start it with rails s (port 3000), it works perfectly both on my machine and every device on my local network via the ip address (192.168.0.3 in my case). I have sinatra application. If I start it with ruby app.rb (port 4567), it works perfectly on my machine, but it it is not accessible from other devices on my local network. Both application use Thin as an app server. Is it something related to how sinatra works? 回答1: Try ruby app.rb -o 0.0.0.0 or ruby app.rb

Is there any way to access GAE dev app server in the local network?

こ雲淡風輕ζ 提交于 2019-12-17 07:13:33
问题 If I access my web site via http://localhost:8080 from the same Win 7 PC, where server is running, then it works well. If I try to access that from another PC (with usage of my internal PC's ip http://192.168.1.98:8080), then it doesn't work. Moreover, it is not accessible with this ip even on the same machine. What am I doing wrong? (I've tried to disable firewall on my Win 7 PC - it didn't help) 回答1: First check whether your server listens on loopback or on all interfaces - in command line

React Native - connect to PostgreSQL database

微笑、不失礼 提交于 2019-12-10 20:49:14
问题 I would like to connect with React Native to an external database, like PostgreSQL, MySQL or what ever. Is this possible? But first let me tell you something about my plan: I will develop my application for multiple installations (multiple devices - one installation on one device). All devices are connected with a local network which is provided by a Windows installation (server). On the server runs a database (PostgreSQL) and I would like to connect to this database with all my devices. The

How can one setup a version control system on a local network, without a server?

。_饼干妹妹 提交于 2019-12-07 10:02:34
问题 Edit: Ok so I learned that I guess I need an distributed source control, however are there any UI based ones, and do they allow you to merge with other users on the network? This is kind of a two part question, so here it goes. I want to start developing a web application at home (with multiple developers). However, I don't have a dedicated server nor want to pay for on. So first, I don't know which version control system to use for this case, as at work we mostly have TFS setup, so I am not

How to get the names and ips of all devices on my local network?

时光毁灭记忆、已成空白 提交于 2019-12-06 12:54:08
问题 My goal is to list the names and ips of all the devices on the local network. list all the computer names on a local network on iPhone similar to this post, but it wasn't answered. I've looked into Apples Bonjour and don't think that's what I need. It doesn't show all the devices on network. I've also tried the code below, but I get weird output (below). int sock; struct ifconf ifconf; struct ifreq ifreq[30]; int interfaces; int i; // Create a socket or return an error. sock = socket(AF_INET,

Get IP address of the current Wi-Fi access point on a iPhone?

谁说胖子不能爱 提交于 2019-11-30 16:18:29
问题 I am trying to connect from my iPhone to a socket server running on the same network on my computer. How can I get the local IP address of the computer that is running the socket server? 回答1: #include <netinet/in.h> #include <arpa/inet.h> #include <net/if.h> #include <ifaddrs.h> - (NSString *)getIPAddress { NSString *address = @"error"; struct ifaddrs *interfaces = NULL; struct ifaddrs *temp_addr = NULL; int success = 0; // Retrieve the current interfaces - returns 0 on success success =

Get IP address of the current Wi-Fi access point on a iPhone?

为君一笑 提交于 2019-11-30 15:50:58
I am trying to connect from my iPhone to a socket server running on the same network on my computer. How can I get the local IP address of the computer that is running the socket server? Nava Carmon #include <netinet/in.h> #include <arpa/inet.h> #include <net/if.h> #include <ifaddrs.h> - (NSString *)getIPAddress { NSString *address = @"error"; struct ifaddrs *interfaces = NULL; struct ifaddrs *temp_addr = NULL; int success = 0; // Retrieve the current interfaces - returns 0 on success success = getifaddrs(&interfaces); if (success == 0) { // Loop through linked list of interfaces temp_addr =

How to start a local network connection programmatically via Wi-Fi hotspot on Android?

北城余情 提交于 2019-11-30 06:52:25
I want to start a local network connection using the built-in Wi-Fi hotspot on Android devices. Is there a way to accomplish it? And how to communicate between two devices? EDIT: I want to do it programmatically. Then I can transfer my own data between devices. brianestey I haven't done this before, so my answer is all theoretical. I think what you need to do is declare one device the server and start its hotspot manually with a known name. Start / stop built-in Wi-Fi / USB tethering from code? (According to this question, you can't start hotspot programatically). Once you have the hotspot set