Accessing TEAMCITY from a remote machine

馋奶兔 提交于 2019-12-12 10:36:23

问题


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?


回答1:


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...




回答2:


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.




回答3:


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

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




回答4:


The problem is that TeamCity's default server.xml has localhost as the host name. You need to add an alias for it answer that name as well, as described here:

http://tomcat.apache.org/tomcat-4.0-doc/config/host.html#Host%20Name%20Aliases

Ryan



来源:https://stackoverflow.com/questions/1931165/accessing-teamcity-from-a-remote-machine

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!