Jump to content
  • 0

L2Off server with dynamic IP


youpe

L2Off server with dynamic IP  

4 members have voted

  1. 1. L2Off server with dynamic IP

    • use dyn dns
      2
    • another way
      1


Question

Hi,

 

Is it possible to host a L2Off server with a dynamic IP ? Because in the database you have to put your WAN IP which we will change for exemple every day.

 

I have a dyn dns, but the adresse is a string exemple : dyndns.mydyndns.com so would it work in the database ?

 

Thanks

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

Test it and see.

 

 

I highly doubt it however - as i believe the IP is sent from auth as a DWORD not as a string.

I'm not sure.

 

Now that i think about it more - the field in the DB that hAuthD \ Official Auth Servers use are also INT if i remember.

So you'd both need to code support for string\char in auth and have client be able to interpret\receive a string and fetch an IP.

Link to comment
Share on other sites

  • 0

Test it and see.

 

 

I highly doubt it however - as i believe the IP is sent from auth as a DWORD not as a string.

I'm not sure.

 

Now that i think about it more - the field in the DB that hAuthD \ Official Auth Servers use are also INT if i remember.

So you'd both need to code support for string\char in auth and have client be able to interpret\receive a string and fetch an IP.

Hi,

 

Is it possible to host a L2Off server with a dynamic IP ? Because in the database you have to put your WAN IP which we will change for exemple every day.

 

I have a dyn dns, but the adresse is a string exemple : dyndns.mydyndns.com so would it work in the database ?

 

Thanks

 

Yes it works just put you dyn dns in in IP column at lin2db and table dbo.server . Start l2auth or hauth and done.

Link to comment
Share on other sites

  • 0

Thanks for the answer I will check the DB type but if I need to code where would it be ? in the BD ?

 

Xel are you sure it works for official C4 server ? if yes it's really nice

 

 

Link to comment
Share on other sites

  • 0

Geuss i remember wrong - however if it's hostname and auth resolves it to an ip before sending to client

theres no issue either.

 

Does it work both with AuthD or hAuthD?

Link to comment
Share on other sites

  • 0

Thanks for the answer I will check the DB type but if I need to code where would it be ? in the BD ?

 

Xel are you sure it works for official C4 server ? if yes it's really nice

 

 

I tested on c6 only.

Link to comment
Share on other sites

  • 0

Geuss i remember wrong - however if it's hostname and auth resolves it to an ip before sending to client

theres no issue either.

 

Does it work both with AuthD or hAuthD?

yes

Link to comment
Share on other sites

  • 0

Well withou having the files here at work - it's because hAuthD translates the hostname into a resolved IP before sending to client.

As the packet server-list - sends DWORD\4x BYTE\CHAR for the ip of each server.

 

So if you wish to do this - use hAuthD and your done :)

Link to comment
Share on other sites

  • 0

Ok thanks a lot for the help ! and if you have time can you check the original auth ? :D because I am waiting on my server to be delivered :s

 

Ok trying into a virtual box because I can't wait lol !

Link to comment
Share on other sites

  • 0

Well withou having the files here at work - it's because hAuthD translates the hostname into a resolved IP before sending to client.

As the packet server-list - sends DWORD\4x BYTE\CHAR for the ip of each server.

 

So if you wish to do this - use hAuthD and your done :)

true

Link to comment
Share on other sites

  • 0

authD will fail, atleast most of them i think.

 

Due to the expectations in code to be able to respond to inet_addr() winsock functions.

atleast from my quick peak @ authd.

 

 

It's cool that hint wrote support for it tho - but it'd be interesting to know if you can exceed 15 chars on authd for a domain or not.

Since that will cripple you.

Link to comment
Share on other sites

  • 0

Yes that's true it's a var char(15) lol

 

Anyway my server is up on my virtual machine but do you have a guide somewhere for L2walker on C4 server untouched because I have only a linux machine available so no way to launch the game and I want to try to connect client on my server

 

In the logs I have error like : read from pc_parameter.txt failed and that for a lot of file

 

and ObjectDB error too :)

 

Ok the error are gone just a few remaining about skills

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock