steam my desktop over Network by VideoLAN - vlc

I am trying to steam my desktop from windows machine ( client ) to my server (linux) ....over my network
this is the command i used in my client side ( windows ) :
vlc.exe screen:// :screen-fps=30 :screen-caching=100 --sout '#transcode{vcodec=mp4v,vb=4096,acodec=mpga,ab=256,scale=1,width=1280,height=800‌​}:standard{access=http, mux=ts, dst=192.168.1.5:8080}'
on my linux i try to open :
192.168.1.5:8080 from my web but it does not work
linux ip : 192.168.1.5
win ip : 192.168.1.30
how i can do that ??

Related

WSL2 (docker) ports are not openend on host

When I run an image through docker in WSL2, the ports are not published on the host machine. Why is this? What can I do to make this work?
So while I still don't know why this happens (sometimes) it appears a restart fixes it (temporarily?):
(on windows cmd)
> wsl --shutdown
Re-running the same commands as above yields mapped ports also visible ob the windows host machine:
C:\WINDOWS\system32>netstat -ano | findstr 55580
TCP 127.0.0.1:55580 0.0.0.0:0 ABHÖREN 12392
TCP [::1]:55580 [::]:0 ABHÖREN 12392
The 12392 PID is wslhost.exe

PhpStorm xdebug on WSL2 - Waiting for incoming connection

I am running Windows with WSL2 and Ubuntu 18.04 in there. The webserver is running in Docker Desktop. Xdebug is set up and PhpStorm configured. But I always get "Waiting for incoming connection with ide key 'PHPSTORM'". I have also installed Xdebug toolbar in the browser and set the ide key there.
In the run configuration I set the server to sw6.dev.localhost. That is the URL in the browser. But I also tried 127.0.0.1 and localhost. Always the same result. Do you have an idea what is going wrong?
I have read that the docker container always got a new IP. Could that be the problem?
In the docker file I have set: xdebug.remote_host = host.docker.internal
In the xdebug.log I got:
[27] I: Checking remote connect back address.
[27] I: Checking header 'HTTP_X_FORWARDED_FOR'.
[27] I: Remote address found, connecting to 172.26.0.1:9000.
[27] W: Creating socket for '172.26.0.1:9000', poll success, but error: Operation in progress (29).
[27] E: Could not connect to client. :-(
My xdebug.ini looks like this:
xdebug.remote_enable=1
xdebug.remote_autostart=0
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.remote_log=/tmp/xdebug.log
xdebug.idekey=PHPSTORM
xdebug.profiler_enable=0
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="/tmp/xdebug"
xdebug.profiler_output_name = "cachegrind.out.%R.%t"
xdebug.auto_trace=0
xdebug.trace_enable_trigger=1
xdebug.trace_output_dir="/var/www/html/traces"
xdebug.trace_output_name="trace.%R.%t"
xdebug.show_mem_delta=1
I am not sure about the IP. Should that be the IP of the docker container with nginx?
I have set -Djava.net.preferIPv4Stack=true in PhpStorm's vmoptions.
Any help would be greatly appreciated.

PyCharm cannot use interpreter in server docker-machine(Channel disconnected before any data was reveived)

I am using MAC OS + PyCharm(for pro) and ubuntu16.04 server.
When I try to connect to the server's docker using local pycharm, I get the following error:
( Cannot connect: java.io.IOException: Channel disconnected before any data was reveived )
( I changed the docker daemon port. )
And, I tried searching for ports, and worked well.
Port Scanning host: 163.---.---.178
Open TCP Port: 7561
Even if I tried changing tcp to https, it gave an error.
How can I fix it?
1.set this item first, then reboot your laptop. Run pycharm as administrator, it works for me.

DOCKER: Linux Container on Windows 10, how to use nmap to scan device's mac address

I am trying to setup the docker which can successfully scan the subnet device's mac address by using nmap. And I've spent 3 days to figure out how to do it but still failed.
For example:
The host IP: 10.19.201.123
The device IP: 10.19.201.101
I've setup docker container which can ping 10.19.201.123 and 10.19.201.101 both successfully. But when I use nmap to scan mac address from docker container, I got below:
~$sudo nmap -sP 10.19.201.101
Starting Nmap 7.01 ( https://nmap.org ) at 2018-05-29 08:57 UTC
Nmap scan report for 10.19.201.101
Host is up (0.00088s latency).
Nmap done: 1 IP address (1 host up) scanned in 0.39 seconds
However, if I use nmap to scan mac address from VM (10.19.201.100), I got:
~$sudo nmap -sP 10.19.201.101
Starting Nmap 7.01 ( https://nmap.org ) at 2018-05-29 17:16 CST
Nmap scan report for 10.19.201.101
Host is up (0.00020s latency).
MAC Address: 0F:01:H5:W3:0G:J5(ICP Electronics)
Nmap done: 1 IP address (1 host up) scanned in 0.32 seconds
PLEASE, who can help or give prompts of how to do it?
For who is still struggling with this issue, I've figured out how to do it on Windows 10.
The solution is to make the container running on the same LAN as your local host, so nmap can scan the LAN device successfully. Below is the way to make your docker container run on the host LAN.
Windows 10 HOME
Change the virtual box setting
Stop VM first by administrator docker-machine stop default
Open Virtual Box
Select default VM and click Settings
Go to Network page, and enable new Network Adapter on Adapter 3
(DO NOT CHANGE Adapter 1 & 2)
Attached Adapter 3 to bridged Adapter with your physical network and click OK
Start VM by administrator docker-machine start default
Open Docker Quickstart Terminal to run container, the new container should be run on the LAN now.
Windows 10 PROFESSIONAL/ENTERPRISE
Create vSwitch with physical network adapter
Open Hyper-V Manager
Action list- > Open Virtual Switch Manager
Create new virtual switch -> select Type: External
Assign your physical network adapter to the vSwitch
Check "Allow management operating system to share this network adapter" and apply change
Go to Control Panel\All Control Panel Items\Network Connections.
Check the vEthernet you just created, and make sure the IPV4 setting is correct. (sometimes the dhcp setting will be empty and you need to reset again here)
Go back to Hyper-V Manager, and go into Setting page of MobyLinuxVM (ensure it's shut down, if it's not, Quit Docker)
Add Hardware > Network Adapter, select the vSwitch you just created and apply change
Modify Docker source code
Find the MobyLinux creation file: MobyLinux.ps1
(normally it's located at: X:\Program Files\Docker\Docker\resources)
Edit the file, and find the function: function New-MobyLinuxVM
Find below line in the function:
$vmNetAdapter = $vm | Hyper-V\Get-VMNetworkAdapter
Update it to:
$vmNetAdapter = $vm | Hyper-V\Get-VMNetworkAdapter | Select-Object -First 1
Save file by administrator
Restart Docker, and the container should run on the LAN now.

Port Forwarding for compute engine google cloud platform

I'm trying to open port TCP 28016 and UDP 28015 for a game server in my compute engine VM running on Microsoft Windows Server 2016.
I've tried opening the opening inside my server using RDP, going to Windows Firewall setting and creating new inbound rules for both TCP 28016 and UDP 28015.
Also done setting firewall rules on my Cloud Platform Firewall Rules for both port.
When running my game server application, running netstat didn't show any of the port being used / not listening . Not even shows up. What did i do wrong ?
Edit : it now shows up on netstat -a -b , but didn't have LISTENING
If it doesn't show as LISTENING, it's not a firewall or "port forwarding" issue; rather, the application either isn't running, or is running but isn't configured to listen for connections on that port.

Resources