Karthik,
When we provide the target URL in the Portal, the VSE tries to validate the address.
"Target URL is valid, but target is invalid" message means that given URL is one of the allowed syntax but target host may not be valid.
If you know the target URL you provided is valid, verify if the VSE and Portal servers have access to the address provided.
Hope it helps.
Heloisa