question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to specify IP in endpoints

See original GitHub issue

Hi @tabarra

FiveM allow specifying IP address in the endpoint in situations where you do not want to bind to all interfaces, from the top of the config:

# Only change the IP if you're using a server with multiple network interfaces, otherwise change the port only.
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

When setting my IP in the above, I get this error:

[txAdmin:FXRunner] FXServer config error: You MUST have one endpoint_add_tcp with IP 0.0.0.0 in your config

Which I’ve traced back to this:

https://github.com/tabarra/txAdmin/blob/8d23fec525ae68e4ce83cbb93b726f0f2e133999/src/extras/helpers.js#L165

    let validTCPEndpoint = matches.find((match) => {
        return (match.type.toLowerCase() === 'tcp' && (match.interface === '0.0.0.0' || match.interface === '127.0.0.1'))
    })
    if(!validTCPEndpoint) throw new Error("You MUST have one <code>endpoint_add_tcp</code> with IP 0.0.0.0 in your config");

Is this a limitation with txAdmin? How can we bind to specific IP addresses as this looks to be supported by FXServer but is prevented by txAdmin

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tabarracommented, Jun 20, 2020

Open config.json file, and in the globals property you add forceFXServerPort with the port you set for the localhost endpoint.
I’m closing this issue, feel free to join out Discord if you want.

0reactions
GLN123commented, Jan 21, 2021

Yep its all working fine - thanks for your help

Hi, would you be willing to help me? I had the same problem as you, everything is already working for me except that one of the servers is not showing in the server list

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to start the server with IP address binding
When there is an IP address binding, the backend listens only to the network interface with the specified IP address. Thus, server connector...
Read more >
Other endpoints not included in the Office 365 IP Address and ...
Row Purpose Destination 1 Import Service for PST and file ingestion Refer to the Import Service for more requirem... 6 Customer on‑premises EWS/MRS Proxy TCP... 8...
Read more >
Solved: Unable to connect to endpoints - Cisco Community
Solved: Hi I now have a bit of a problem with something that was working last week but is not working now. I...
Read more >
Allow specific IP addresses access to an API Gateway REST API
I want to allow only specific IP addresses access to my Amazon API Gateway REST API. How do I restrict access to my...
Read more >
Troubleshooting a DHCP server failure - TechTarget
Dynamic Host Configuration Protocol, or DHCP, eases the task of administering IP addresses for network endpoints by centralizing address allocation ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found