Posts

Showing posts from December 21, 2018

Connect to ssh on machine behind NAT with forwarded port

Image
0 I am struggling with connection to my Raspberry Pi behind NAT in my home from outside. What I did until now: I set in my router DDNS to have access for outside because my ISP giving me dynamic IP (let say it is: external.no-ip.org) I set in my router in DHCP static IP (sing MAC address) for my Raspberry Pi (let say it is 192.168.1.155) I forwarded port 50022 on my router to port 22 of 192.168.1.155 which is reserved for Raspberry Pi Next I am trying SSH ssh pi@external.no-ip.org -p 50022 and I can not connect to SSH. What I am doing wrong? I have tested and can ping external.no-ip.org and it have my IP. I have tested redirections and for sure 50022 is redirected to 22 on my raspberry PI. Thank you for help. BR Arek ssh raspberry-pi share | improve this question asked Nov 11 at 7:36 ArekS 21 3 For the ssh response to arrive back the private IP should be SNATed a.k.a MASQUERADE – Nizam Mohamed Nov 11 at 7:42 1 pi@externa

Screen Capture video with audio in Java

Image
0 I'm trying to programmatically screen capture a video of a browser, with audio, using Java. I'm currently using the monte media package, with the following code, but every audio configuration I use screws up the video (and doesn't actually add audio). Here's the relevant code: GraphicsConfiguration gc = GraphicsEnvironment .getLocalGraphicsEnvironment() .getDefaultScreenDevice() .getDefaultConfiguration(); screenRecorder = new ScreenRecorder(gc, new Format(MediaTypeKey, MediaType.FILE, MimeTypeKey, MIME_AVI), new Format(MediaTypeKey, MediaType.VIDEO, EncodingKey, ENCODING_AVI_TECHSMITH_SCREEN_CAPTURE, CompressorNameKey, ENCODING_AVI_TECHSMITH_SCREEN_CAPTURE, DepthKey, 24, FrameRateKey, Rational.valueOf(15), QualityKey, 1.0f, KeyFrameIntervalKey, 10000 * 60), new Format(MediaTypeKey, MediaType.VIDEO, EncodingKey, "black", FrameRateKey, Rational.valueOf(30)), /* //THIS AUDIO FORMAT DOESN'T WORK, BUT I PUT IT HERE //AS AN EXAMPLE