In Texas, a father can file a petition to establish paternity until the child reaches the age of 18. However, it is generally advisable to establish paternity as early as possible to protect the fathers rights and ensure the childs access to support and benefits.