# How to change default OpsHubTFSService port number?

### Description

By default OpsHubTFSService is registered on port number `9090`. If `9090` port is used by any other application/process, then you can change the port number.

### Solution

To change default OpsHubTFSService port number you need to perform the following steps:

* Open file `<code class="expression">space.vars.SITENAME</code>_INSTALLATION_PATH>\Other_Resources\Resources\OpsHubTFSService\opshubtfsservice.exe.config`.
* Find the line `<add baseAddress="http://localhost:9090/TFSService"/>` and instead of `9090` change port number with which you are going to register.\
  e.g. If you want to register with `9191` then change the line as `<add baseAddress="http://localhost:9191/TFSService"/>`.
* If you have not registered the OpsHubTFSService then refer [this](/opstech-docs/help-center-index/faqs/tfs-faqs/register-opshubtfsservice.md) for registering OpsHubTFSService.\
  If you have already registered OpsHubTFSService then restart OpsHubTFSService service.

### Validate

After changing OpsHubTFSService port number, you can validate by opening this URL in browser:\
`http://<hostname>:<port>/TFSService`

E.g. if you have used port number `9191` then use URL: `http://localhost:9191/TFSService`.

If port number is changed successfully, the following output will be opened in browser after hitting the URL:


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://opstech.gitbook.io/opstech-docs/help-center-index/faqs/tfs-faqs/register-opshubtfsservice-other-port.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
