View Single Post
Old 01.09.2005, 05:38   #4
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

Ah. If you're running the game on a seperate PC, then change your l2.ini to the LAN ip of the server PC. If you're running the server and client on the same PC (which I hope you're not, hehe) then use 127.0.0.1 in your l2.ini.

For example, if your ip is 1xx.xx8.1xx.xx1 and the server PC is 1xx.xx8.1xx.xx2, use the second ip in your l2.ini instead of your WAN IP of the server PC. Or, to make things easier, you could get a dynamic dns service (no-ip.com, dyndns.org, etc.), and just put that in your l2.ini file as well.

I use the dynamic ip service to make things much easier. Don't know if you've got that covered or not. Just making some suggestions.

The way I have mine set up is like this.

1.) I'll use dyndns.org as an example. Get the name of the service - I'll use l2rocks.dyndns.org as an example.

2.) Put that in your l2.ini (l2rocks.dyndns.org).

3.) In your AuthD folder, edit the config file.
DevServerIP="l2rocks.dyndns.org"

4.) In your SQL database under lin2db, under the ip field of the server put your WAN IP there. (whatismyip.com).

Should be fine after that. Now whenever your ip changes, just change the field in the lin2db (I haven't found a way around changing it on the fly since MosS's tutorial doesn't work for me). But I can connect to the server on the other PC without any effort at all, save for editing the lin2db whenever my IP does change. I leave everything else the same since it works this way.

Oh, and make sure the ports 2104 and 7777 (PC with 1xx.xx8.1xx.xx2) are open for the server PC on your router. Your client PC won't need any forwarding, afaik.
flakka is offline