TFS over Internet - Receive TF31002 Unable To Connect
I am running TFS in Single Server mode (ATDT on 1 machine) and am using the Workgroup edition that came with my MSDN license. Everything works great when connecting from VS Team Explorer on the server.
I can't seem to connect with Team Explorer from my workstation machine. I am trying to connect over the internet, not local LAN.
Can someone please point me in the right direction.
thanks,
Chris
[435 byte] By [
AlmCoder] at [2007-12-20]
I now have a VPN connection to a private network that my server is on. I can access the web serice URLs through IE but when I try to add the server to Team Explorer in Visual Studio I receive a TF31002 error.
This is my second post after I have followed the documentation and setup a VPN. The first post "disappeared" mysteriously.
Can someone please help me get this to work over the VPN. This is driving me nuts.
Thank you,
Chris
The issue is that when Team Explorer connects to the TFS infrastructure it is told the address of the server(s) to communicate with which is a local hostname, not a fully qualified domain name, which would be necessary. You may also need to add custom headers to IIS. I am putting together a blog post on how to do access a TFS server over a WAN. You can see my latest post on the http header information at http://blogs.msdn.com/brianreisman. Please note that this is an unsupported scenario and poses should only be done in a safe environment (eg Not over the internet)
Please note you will need to open up ports 80 and 8080 to work with existing TFS projects. If you will be adding or managing projects you will need to open up your SharePoint administrative port which is certainly not recommended. Also in order to authenticate you will need to use basic authentication (Which means that your login information is going across the WAN in clear text. If you are planning on connecting to TFS over an untrusted network you should use SSL so that the communication is encrypted.
You can make it work by making some manual hacks to your database and adding some aliases to the naming resolution of your internal network. Make sure that you backup your databases and any other settings that you modify so that you can return it to a supported scenario after the experiment.
DO NOT PERFORM THIS UNSUPPORTED HACK ON PRODUCTION SYSTEMS.
Run the following code on your data tier in the TfsIntegration database, replace <NEW_SERVER_NAME> with the WAN fqdn of the application tier computer. (eg. tfs.joltcoder.local)
Declare @OldName varchar(255)
Declare @NewName varchar(255)
select @OldName = url from tbl_service_interface where [name] = 'DataSourceServer'
set @NewName = <NEW_SERVER_NAME>
update tbl_service_interface
set url = replace(url,@OldName, @NewName)
Where url like '%'+@OldName+'%'
--SELECT [name], url, replace(url,@OldName, @NewName)
--FROM tbl_service_interface
--Where url like '%'+@OldName+'%'
If you still are having problems please contact me through my blog and I will do my best to help you.
|brianReisman
TFS Deployment Technology Group