I have no idea why would you need to get address from browser (not sure this is what you really need), but everything you are asking about is easy.
Parsing URL to remove query parameters:
http://msdn.microsoft.com/en-us/library/system.uri%28v=vs.110%29.aspx[
^].
Just create the instance of
System.Uri
using the constructor with as string parameter, and use the properties to read the parts of URI you need.
And for pinging, use the class, not to much of surprise,
System.Net.NetworkInformation.Ping
:
http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ping%28v=vs.110%29.aspx[
^].
[EDIT]
To find IP by URI, you need to act as a client of DNS:
http://en.wikipedia.org/wiki/DNS[
^].
This is how:
http://msdn.microsoft.com/en-us/library/system.net.dns%28v=vs.110%29.aspx[
^].
—SA