Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing TEAMCITY from a remote machine

Tags:

teamcity

I am having trouble browsing to my team city(JetBrains) from a remote machine. I have followed the install directions and the install went smoothly. I can browse the to application locally on the server, no problem at all. I changed the default server url in the config file to be http://my servername . I can browse to http://my server name and the application shows up no problem locally. The application is alos installed on the default 80 port of the server with no other web server installed.

If I browse to http://my servername from my laptop on the same domian nothing happens. When I run diagnostics it seems to pick up the webserve but it fails to respond.

As a test I uninstalled the app and installed IIS to see if I could browse to the default IIS page remotely. This worked no problems at all. I uninstalled IIS, ensured nothing was hogging port 80 on the server. Reinstalled the applicaiton, configured it exactly the same, still nothing. The application works fine locally, but I get nothing remotely.

I was just wondering if anybody knows anything else I can try? or is there a setting in tomcat I need to tweak?

like image 207
Gary Woodfine Avatar asked Dec 18 '09 22:12

Gary Woodfine


3 Answers

I just updated TeamCity from 7.0 to 7.1, and now I have the exact same issue.

However, what turned out to be the cause had nothing to do w/ the TeamCity upgrade. It turns out our system administrators had setup a policy update to block all incoming connections other than port 80. When I started my upgrade, I noticed the server wanted to do some system updates. So I let that go first.

I suspect that had I tried to access the TeamCity server after the system update, I'd have realized I could no longer access the website remotely.

But since I only noticed it after the TeamCity update, I assumed it to be the culprit and wasted a bunch of time on that red herring.

The solution for me was to

  1. Open Windows Firewall on the server
  2. Click on the root level option in the left-hand pane
  3. Make sure under each of the profile sections, that inbound connections are allowed.

(#3) was my problem.

Hope this helps someone else out in the future...

like image 165
Eric Avatar answered Oct 02 '22 17:10

Eric


Verify that the server is running on port which is not blocked by the firewall. Change the port if necessary.

Tomcat also supports binding to specific IP addresses, in case your machine has multiple IPs, you can configure which one to use in server.xml, like:

<Connector port="80" address="10.10.10.10" protocol="HTTP/1.1" 
           connectionTimeout="20000" 
           redirectPort="8443" />

Where 10.10.10.10 is the IP of the server which can be accessed from the remote machine.

Check the server logs to ensure that it's started on the correct IP/port and is accepting connections.

like image 29
CrazyCoder Avatar answered Oct 02 '22 18:10

CrazyCoder


I just faced the same issue when evaluating TeamCity v10.0.

I solved it by changing the 'Server URL' value with the name of my computer that can be used from remote computer.

As they say, "make sure the server is accessible by the URL specified".

To reach this setting: - Login to TeamCity interface then - Click on the 'Administration' link enter image description here

This is well explained in the TeamCity support page: https://confluence.jetbrains.com/display/TCD10/Configuring+Server+URL

like image 28
Kro Avatar answered Oct 02 '22 18:10

Kro