Address is invalid on local machine, or port is not valid on remote machine

I’m trying to open a simple HTTP connection in java installed on Windows 8, Unfortunately the process ended up with an error

Exception in thread “main” java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.grassfield.TestUrl.main(TestUrl.java:19)

Quoting from  http://stackoverflow.com/questions/15105357/address-is-invalid-on-local-machine-on-windows-8-only

I believe that this issue is caused by Java attempting to use an IPV6 address, when either your OS doesn’t support it, or is not set up properly to handle it.

You can force Java to use an IPV4 address with the following property:

-Djava.net.preferIPv4Stack=true

It works after the new JVM parameter

Dindigul 018

Windows Upgrade: How to remove windows.old folder?

Manually deleting the Windows.old folder may corrupt the harmony of the OS. Do it with Disk Cleanup. Open the disk cleanup. Choose “Cleanup system files” option. You will be able to get rid of the following.

  • Old windows backup
  • Temporary installation files
  • Upgrade logs

Ref: http://windows.microsoft.com/en-in/windows7/how-do-i-remove-the-windows-old-folder

This is a link for windows7, still it works in windows8 as well

About

Story of my Android Migration – Thanks to Windows 6.1!

Last week, one of the frustrating weeks of this year for me.  I got numerous problems with my windows based biz phone. I got excellent review for that product, which made me to buy that. After buying and installing some apps, I got into several troubles. Installation of some applications failing with permission issue. Googling directed me to change some registry value, for that they told me an application similar to regedit. Installation of that apps also getting failed because of same permission issue. 🙂

whenever I used to browse, the head-ache starts. The phone will hang for ever. you will see key pad lights glowing, display switched off. No other option except pulling the battery out and reboot it.

Both booting and shut down option is too long. after very few apps installation, the phone becomes sluggish. aahhh

Last few days became nightmare for me. even after hard resetting, it keeps on hanging. Clearing temp files, cookies din’t help me much.

Consultation at service point is discouraging. They can work on this reboot issue. But nothing to do it with speed because, all windows phones are like that only 😦

I cant keep this growing. I looked for alternative options. If you ask me the OS, I have no choices other than Android. Regarding the brand, I am much interested to test HTC this time. after reading the reviews, specs finally I had three options before me

HTC wildfire – Full Touch – Android 2.1 – 528 MHz

HTC legend – Full Touch – Android 2.1 – 600 Mhz

Sony Ericsson Xperia X10 mini pro – Semi Touch & Qwerty – Android 1.6 upgradable – 600 MHz

I left with no option for Qwerty with Android in HTC. I am not looking for more fun. The features of media player or FM radio may not convince me. My main concerns were speed, apps, mails & IMs while moving.

Finally it’s Xperia X10 mini!

Is this a success story or failure story? 😦

528 MHz

BSNL 3G speed @ Pudukkottai

bsnl 3G @ pudukkottai

bsnl 3G @ pudukkottai

Myself, from a god forsaken place called Pudukkottai in Tamilnadu. As DIT promised, they will make every district headquarters covered with 3G within this year. It is in progress. I was getting 380 kbps till today morning. Amazing.. The speed is good from the afternoon…. Hope they will start the service soon with full capability.

Perfmon counters are shown as numbers instead of text

I have seen this in a windows 2003 box. The perfmon counters, objects are mere numbers instead of text. Same issue described in

https://exchangepedia.com/blog/2008/06/perfmon-counters-show-up-as-numbers.html

it is suggested to use Lodctr.exe /r so that it can recreate the objects.

Ref: http://technet.microsoft.com/en-us/library/bb490926.aspx

Hard Reset in Samsung Omnia Pro B7320!

This is an interesting like I came across! http://www.pspmyspace.com/omnia/2008/09/how-to-hard-res.html

My omnia hangs now and then for the past few days. Dont know why. I decided to do one hard reset once. I am okay with the loss as Google Sync takes care of all my contacts and mails.

There are couple ways mentioned in the page I quoted above! I tried the second one

*2767*3855#

Typing the above will reset the phone, and restart it couple of times to ensure the factory settings.. (I doubt, I saw some internet profiles, menu items were still there!!!)