Is there a way to find out the URL of the SVN server?
We are currently having issues allowing a client to access the SVN server due to an unknown hostname error. Is there a bug that will point the correct SVN server url from the server?
I am on Collabnet Subversion Server and the client is using TortoiseSVN.
a source to share
"unknown hostname error" means that for some reason you cannot access the host specified in the URL that you are trying to use with Subversion. For example, if your URL is http: // myCollabnetSubversionServerName / svn / mySuperProject / trunk , then you cannot reach myCollabnetSubversionServerName. Can the client machine see myCollabnetSubversionServerName?
Sorry to answer the question itself: Usually the repository url is: http: // or https: // followed by the server name if you are on a local network, or the domain name if your server is on the internet, perhaps for it is followed by the port that your webserver is listening on (if you don't need to set this by default), followed by svn, followed by the name of the repository.
Examples:
- http://www.mycompany.com/svn/myrepositoryname/trunk
- https://www.mycompany.com/svn/myrepositoryname/trunk
- http://www.mycompany.com:81/svn/myrepositoryname/trunk
or
a source to share
Can you communicate with the server using ping for example?
It may help if you are using the server IP instead of your hostname. If you would like to find out your IP address but do not know how to do it, you can visit http://www.whatismyip.com/ from the server at find out. It is assumed that your server will be accessible from the Internet and not from your local network.
a source to share
I'm really skeptical if there is a way to return the correct server url from the server. Solution for your unknown hostname - create an entry in the hosts file on the client system to map IP addresses to hostname [SVN server name]
usually the hosts file is located in the c: \ Windows \ System32 \ drivers \ etc folder and the entry should be done in the following format
192.168.0.1 SVNServerName
Hope this helps!
a source to share