Printing using CUPS via Internet - printing

How do I print from across the Internet using CUPS? Installed Cups in Raspberry Pi, i can control printer through CUPS only on LAN network, is it possible to access printer through cups on global network via laptop/mobile from anywhere?

Access the CUPS admin page (e.g.: http://localhost:631/admin) and enable the following options: "Share printers connected to this system" and "Allow printing from the Internet are checked".

You need to do the port forward the of the raspberry pi IP address from the router through which the raspberry pi is connected for internet connection. After that you need to create the dynamic dns of the port forwarded and then you will get the access of the printer from remote connection

Related

lack of communication between hyper-v and physical machine

I would like to set up SMS notifications for the infrastructure auditing application. the application server stands on hyper-v. huawei modem is in a physical machine because hyper-v is not possible to connect usb. on this machine I set something like netsh interface portproxy add v4tov4 listenaddress=server address listenport=10080 connectaddress=192.168.8.1 connectport=80.
for some reason, port 10080 does not open, there is no communication between hyper-v and the machine with the modem. manual opening of the port on the firewall does not work. through cmd does not work. modem works correctly because when it is installed locally - notifications work. does anyone know where the problem may lie? how to communicate machines?

How get access to LAN IOT devices with DO + OpenVPN?

I've fake IP in local network for some IOT, like 192.168.1.11, 192.168.1.15 etc. My LAN connect to Internet via provider with fake IP too, like 10.10.10.15. I've task connecting (REST) to my IOT-device through Internet. For that I want use DO droplet with real IP(for sample 178.62.209.11) and setup OpenVPN on it. For my home LAN I've buy the Mikrotik Router RB951Ui-2HnD which must allow setup the OpenVPN client. So, my LAN with DO Droplet must be VPN.
And now my question is how to do traffic translation from MY SERVER 178.62.209.11 to LOCAL device IOT 192.168.1.11? I understand that my server have only one IP, but I look that may be port forwording! For sample, if I want send request to my IOT device by 80 port, then I can use for that port forwards, like 178.62.209.11:1234 <=> 192.168.1.11:80, and for second IOT device 178.62.209.11:1235 <=> 192.168.1.15:80, and etc.
I found how to set OpenVPN to DO Droplet, I found how adjust OpenVPN client on the router, but can not found how get simple access to my device. Can you help?

Paho-mqtt connect via ppp0

I am working on an embedded linux based device that runs ubuntu. Now the device driver for the wifi is really crappy so I cannot create a hotspot so this device connects to another device which is running a hotspot. Now I am connecting to that device for some input but at the same time connecting to internet to send mqtt message using paho mqtt in python via a gsm modem. The modem connect to internet using pon command and it works nicely. But when both connections are running, paho-mqtt cannot connect to internet anymore. pinging using -I ppp0 works fine. I tried to bind ppp0 ip address to paho-mqtt client using the bind_address argument but it does not work. How to resolve this issue?

Using Beaglebone black in Window 10

I want to using beaglebone black in IOT.
My OS is window, so I use "Putty" connecting with debian.
IP address is 192.168.7.2, Port 22 and Connection type is SSH.
I want to confirm networking state so enter "ping 192.168.7.1".
Then, putty is not working.
so i adjust entering like "ping -c 2 192.168.7.1".
output is receive 0 and loss 100%.
I don't know the reason why output is like that.
I connect computer by ethernet, and beagle connecting p4.
BBB is configured by default to use the dynamic host configuration protocol DHCP, so ti will get some random IP address if you are using ethernet and not USB. However, you have some options to find it out:
You can attach a display and check the IP address asigned to the BBB;
You can connect to the BBB via serial console (although you need a specail cable for it);
You can connect your BBB via USB for the first time and configure a static address as described here and here
Attention, 192.168.7.2 is default BBB ip on Virtual ETH via USB (in Windows). You try connect usb and open SSH on 192.168.7.2:22. If fine, you can to change IP configuration on /etc/network/interfaces

Unable to connect Rainbow Hat/Raspberry pi3 with Android Things using adb

I'm using Pimoroni Rainbow-Hat Raspberry pi3 kit. I have loaded android things image on sdcard. I have power cable and ethernet cable connected.
I can see Android things boot screen on display but i don't see the IP.
When i try to connect with adb connect Android.local it's not working(getting unknow host). I tried the ethernet cable from pi3 ethernet port to laptop , i can see the lan ip when i do ipconfig /all but when i try adb connect <-ip-:5555, still connection gets refused. but am able ping to the ip.
I am using Windows 7 OS.
Tried turning off IP v6, Windows Firewall, rebooting host etc, still not able to connect.
My main problem is getting the Aot device recognised on the host and load the app onto it.
I'm aware but haven't tried usb to ttl serial cable option mentioned here
I'm familiar with Android but new to iot/Aot , any help about where i am going wrong would be appreciated.
When i try to connect with adb connect Android.local it's not working(getting unknow host).
I tried the ethernet cable from pi3 ethernet port to laptop
The Raspberry Pi is a computer in its own right.
You need to connect the ethernet cable from the Pi3 to your router aka to the local network (not into your computer directly)
The follow the steps from the docs here and setup wifi to avoid further cable issues.

Resources