Category Archives: Troubleshoot

VMWare Player : NAT not working when forwarding some ports

Published by:

When using NAT with the VMWare Player, you might want to make sure that there aren’t applications on your PC that are using the ports you want to forward.

When you try to forward a port that is in use, the network will stop functioning as a whole.

netwcfg

Here is an example of a NAT setup. The proxy is a tunnel over ssh, that acts as a socks5 proxy and is working fine. Then I tried to forward port 80, so that I can access the websites I’m working on in the Linux guest.
As soon as I activated this configuration, I lost all network connections in the guest os.

When I looked at what ports were used by the host system, using the netstat -nba command:

netstcfg

I noticed Skype used port 80 and that’s why I couldn’t forward port 80. Once I disabled port 80 in Skype it worked.

To disable these ports in Skype, click Tools -> Options -> Advanced tab -> Connection. Uncheck “Use port 80 and 443 as an alternatives for incoming connections”. Save and restart Skype.

Links:

How to use NAT in VMWare
https://www.vmware.com/support/ws45/doc/network_nat_details_ws.html

Where to find vmnetcfg?
https://ninety9names.wordpress.com/2013/12/18/download-vmnetcfg-exe-vmnetcfglib-dll-for-vmware-player-6-x-7-x/

Application blocked by Java Security

Published by:

After countless security issues, Oracle has decided that only applets that can present a valid certification can run. And there is no “opt out”. Well, I guess they just got fed up with being blamed of all sins in the world and made their security ridiculously strong. As such, many applets, especially those on small devices like cameras, switches, etc, won’t run at all.

2015-01-14_0-02-11

2015-01-14_0-03-51
Application Blocked; Click for details. Your security settings have blocked an application signed with an expired or not-yet-valid certificate from running.

Until version 8, the solution was to put Java in “medium security” mode. But the slider is gone now and the only options are High and Very high.

Anyway. To make those applications run again you’ll need to add the URL of the application in the Exception Site List in the Java Control Panel. Here is how that works.

( 1 )First you need to know URL where the application runs. If you know it already, skip to section 2.

Open the page with the blocked application.

2015-01-14_0-09-09

Right click the application and choose “inspect element”. That will bring up the source code of the application.

2015-01-14_0-12-10

Look for codebase= and copy down that URL ( in this case http://10.0.0.182:8989/admin ). This is the URL we will use to put in the exception list.

( 2 ) Configure Java

Go to control panel and search for the Java configuration.

2015-01-14_0-06-57

Double click to open the Java Control Panel.

2015-01-14_0-23-18

Go to the tab Security and click the Edit Site List button.

2015-01-14_0-27-07

In the Exception Site List window click the Add button. There you can enter the URL of the application as you found it in section 1. Note that you need to add a slash to the end ( / ). The slash will tell java to allow execution of applications that run from there and all sub-directories.

Click ok.

Dismiss the security babbling by clicking Continue.

Click ok again to close the Java Control Panel.

Now KILL Chrome (or firefox or internet explorer), because the changed settings will only work if the browser is restarted.

2015-01-14_0-34-46

Note that just closing Chrome will not end the browser. It will still be running. Kill it in the task manager.

If you don’t want to kill them one by one, you can use following command from the DOS prompt.
taskkill /F /IM chrome.exe

Restart the browser and try again. It should work now.

Windows 7 install stuck on Asus N751JK UEFI

Published by:

If you bought a new Asus laptop and want to install windows 7, you’ll find that the installation will hang on starting windows and will not continue. This is because of UEFI ( Unified Extensible Firmware Interface ) which is meant as a replacement for the BIOS. You can read all about it on the Wikipedia page (link)

As it stands, only windows 8 setup can be booted from the DVD drive. If you want to boot a windows 7 DVD , you’ll need to disable UEFI’s secure boot.

On the newer ASUS laptops enter the BIOS. ( press escape continuously during boot until it asks you to go into setup ).
Select Enter Setup:

26-12-2014 16-16-25

Go to the SECURITY tab and select Secure Boot Control. Set Secure Boot Control to DISABLED.

26-12-2014 16-03-09

Then go to the BOOT tab and select Launch CSM. Set Launch CSM to ENABLED. (This will make booting backwards compatible)

26-12-2014 16-05-15

The select Launch PXE OpROM and set it to ENABLED.

26-12-2014 16-18-53

Then go to the Save & Setup tab. Select Save Changes and Exit. Choose YES in On the Save & Exit setup.

26-12-2014 16-10-08

Your laptop will now restart. And the setup of windows 7 will now continue past the point where it first hung.

VLC Player starts left audio channel in mono

Published by:

VLC version 2.1.3 (latest) seems to start some MP3 files in stereo mode left and you’ll need to manually change it back to stereo every time a new file plays.

26-06-2014 15-30-49

There is no answer in the forums : link 1

Here is a solution to fix this annoyance.
Go to TOOLS -> PREFERENCES
There check the “All” under Show Settings (at the bottom left).
Go to Audio
Change “Stereo audio output mode” to Stereo ( The default is “unset” which seems to be the problem ).
Click SAVE to store the settings.

26-06-2014 15-29-02

Bad Behavior has blocked 1244 access attempts in the last 7 days.