Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connexion with Dynamic DNS = Connection error #12

Open
HeXiT78 opened this issue Jan 18, 2023 · 3 comments
Open

Connexion with Dynamic DNS = Connection error #12

HeXiT78 opened this issue Jan 18, 2023 · 3 comments

Comments

@HeXiT78
Copy link

HeXiT78 commented Jan 18, 2023

Hi,
I use the [nfsuclient.exe] v1.1.
When i use my server Dynamic DNS address in the [nfsuclient.exe] to add my server, i see my game server name and IP, but connection error in game. Everything is correct when i add my server by IP directly.
I imagine this bug can be frustrating for people using ADSL connection changing of IP at each connection.
I really love your work! Thank you very much!

HeXiT78

@webair-studio
Copy link

webair-studio commented Jan 18, 2023

@HeXiT78 What is "DNS address"? Local ip?
"IP directly" - real ip?

@HarpyWar How to add a domain (ex. myserver.com)? Server ip can change, and domain is stable.

@HeXiT78
Copy link
Author

HeXiT78 commented Jan 18, 2023

I use Dynamic DNS from freedns.afraid.org

When my ip change, my Dynamic DNS is update by my router.
ex: hexit78.mooo.com -> My WAN address 24.200.84.4

@HeXiT78 HeXiT78 changed the title Client with DNS = Connection error Connexion with Dynamic DNS = Connection error Jan 22, 2023
@geckotdf
Copy link

geckotdf commented Feb 28, 2023

the nfsu.conf don't accept dynamic IP so what you can do It's:

Make a backup copy of your actual nfsu.conf like nfsu_original.conf
Edit your nfsu.conf with all your custom settings but remove the line:
serverexternalip = XXX.XXX.XXX.XXX

That new edited file save it with the name nfsu.BKP
Delete nfsu.conf so you only will have nfsu.BKP

Then create a Batchfile with this code:

:: Restore the File without the line
copy nfsu.BKP nfsu.conf

:: Get the public IP and add it to the end of the file.
for /f "tokens=1,2 delims=[]" %%a IN ('ping -n 1 YOUR_ALIAS') DO (
 if "%%b" NEQ "" set ip=%%b
)
echo. >> nfsu.conf
echo.serverexternalip = !ip! >> nfsu.conf

:: Start the server
start "" nfsuserver.exe

Put in "YOUR_ALIAS" you dinamic DNS like myhouse.free.com
With that you resolve your dinamic IP to a number and add it into the file, and start the server.

Best Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants