There's a lot more to the file where I get the port number from, I just used an example, but here's a more descriptive example of the file I pull the port out of:
example.txt:, line from example txt:
entry_entry_host_entry 8080/tcp # hostname entry entry