About ssh to wireless server - raspberry-pi3

I am running a raspberry pi as home server. I find that I cannot access service via my desktop but I can access it by my laptop via wifi connection.
desktop -> lan cable -> router -> wifi -> pi (not working, error: No route to host)
laptop -> wifi -> router -> wifi -> pi (working)

I find the solution. It is solved by enabling vpn passthrough setting (ipsec pptp and l2tp) in netgear router

Related

How to configure genymotion to work with proxifier and tor?

I want to make genymotion's android phone's internet to work with tor proxy.
I added
Proxy server: 127.0.0.1:9150 - To access Tor port
Rule player.exe with 192.168.58.* port with Virtual Box only network action. To isolate genymotion -> virtual box communication.
Genymotion's phone runs correctly, but without internet. How should I route 5555 wifi port for adb.exe to access internet? Got 10049 error from Proxy SOCKS5 127.0.0.1 via Virtual Box host-only network.

RDP from external PC to Hyper-V guest VM

I have a problem configuring RDP. This is the situation:
PC1 (host): Windows 10 Pro with Hyper-V
The guest-VM is Windows 10 Enterprise
I also have another PC in the WLAN, a FritzBox router and an external PC in the internet.
The routers external IP is mapped through dynDNS.
On the router I have forwarded TCP port 3389 to the host PC1.
Host PC1 has one active WLAN adapter. It has a 2nd LAN adapter that is not connected and disabled.
The guest VM has internet access through the default internal switch of Hyper-V, that is not configurable an uses the WLAN adapter. The WLAN adapter is configured for shared connections. A second (external) switch can't be configured with Hyper-V, as the only active adapter is already used by the default switch.
All systems have RDP enabled, port 3389 open, and network discovery enabled. They all belong to WORKGROUP. A domain is not configured.
I can open the following RDP sessions:
from host PC1 to the guest VM
from PC2 to PC1
from the external PC via internet to PC1
What doesn't work and what I need to configure:
from WLAN PC2 to VM guest on PC1
and, most importantly:
from external PC to VM guest system in PC1.
What is wrong or missing?
Solved:
Choose a port number (10000) an verify that it is not used on the host PC1:
netstat -anp TCP
Open incoming port 10000 in firewall on PC1
Forward incoming traffic on host WLAN adapter 192.168.0.29:10000 to internal IP 192.168.162.151 of virtual adapter of the VM
netsh interface portproxy add v4tov4 listenaddress=192.168.0.29 listenport=10000 connectaddress=192.168.162.151 connectport=3389
Configure (FritzBox) router to forward incoming traffic for port 10000 to the host 192.168.0.29:10000
Now I can connect on host:10000 directly with RDP to the VM

Enabling WiFi Hotspot on headless RPi Zero W

Trying to setup a wifi hotspot (that doesn't require internet) on the RPi Zero W via SSH. I'm connected to the Pi via Wifi using the wpa_supplicant.conf to connect to an existing network. I'm unable to connect via OTG USB for some reason.
No matter what online tutorial or guide I follow it fails to work. When I reboot it won't create a network nor reconnect to the existing network.
Is this purely because I'm connected via wifi whilst editing wifi configs?
Has anyone tried this setup? Know any workarounds?

Hosted network not working windows 10

C:\WINDOWS\system32>netsh wlan show settings
Wireless LAN settings
Show blocked networks in visible network list: No
Only use GP profiles on GP-configured networks: No
Hosted network mode allowed in WLAN service: Yes
Allow shared user credentials for network authentication: Yes
Block period: Not Configured.
Auto configuration logic is enabled on interface "Wi-Fi"
MAC randomization disabled on interface Wi-Fi
From what I've read, this should mean I can then start the hosted network:
C:\WINDOWS\system32>netsh wlan set hostednetwork mode=allow ssid=AdHoc key=password
The hosted network mode has been set to allow.
The SSID of the hosted network has been successfully changed.
The user key passphrase of the hosted network has been successfully changed.
C:\WINDOWS\system32>netsh wlan start hostednetwork
The hosted network couldn't be started.
The group or resource is not in the correct state to perform the requested operation.
I have tried updating my network adapter driver "Intel dual Band wireless-AC 765", however it didn't fix it. From reading some of the other questions on this site, I noticed I don't have a driver called "Microsoft Hosted Network Virtual Adapter", could this be causing the issue? I'm not very competent at IT, so if I haven't explained myself clearly, just let me know so I can clarify.
For those who might encounter the same problem. This link helped me. Can't Start Hosted Network.
The following text is copied from the answer in the above link :
This happen after you disable via Control Panel -> network adapters ->
right click button on the virtual connection -> disable
To fix that go to Device Manager (Windows-key + x + m on windows 8),
then open the network adapters tree , right click button on Microsoft
Hosted Network Virtual Adapter and click on enable.
Try now with the command netsh wlan start hostednetwork with admin
privileges. It should work.
Note: If you don't see the network adapter with name 'Microsoft Hosted
Network Virtual Adapter' try on menu -> view -> show hidden devices in
the Device Manager window.
I had the same problem with that network card and I fixed it by installing the app Wifi Direct Access Point from the Microsoft Store. It looks like is a driver issue, HostedNetwork is not well supported by Windows 10 on some hardware.

How to open localhost from another device on my network?

I made Sinatra small App to help me transfer files from my phone to my pc and now I'm trying to open it from my phone and can't access, what should i do?
I use ngrok
$ ngrok http 3000
And it gives me
ngrok by #inconshreveable (Ctrl+C to quit)
Tunnel Status online
Version 2.1.3
Region United States (us)
Web Interface http://127.0.0.1:4040
Forwarding http://320e69c0.ngrok.io -> localhost:3000
Forwarding https://320e69c0.ngrok.io -> localhost:3000
Then I can use one of those ngrok.io urls anywhere in the internet.
start your application with -o 0.0.0.0 option.
type ipconfig (windows) or ifconfig (linux/mac) in your terminal application and get local ip address of your host device (e.g. 192.168.1.x). then on your phone, open browser and type that ip (192.168.1.x) and port (by default 4567, full form 192.168.1.x:4567) to access your sinatra application.

Resources