how can i get url of the application is connected to server?
Consider using a proxy server such as squid or Charles. Most proxy servers can be set to log every connection and the content passing through it.

To see open connections, including TCP connections, use the command line tool lsof.

For detailed network debugging, get a packet trace. Apple's Q&amp;A1176 walks through how to obtain a packet trace on Mac OS X.