Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 21.09.2005, 13:32   #1
MoSs
Архивный участник
 
Join Date: Jul 2005
Posts: 108
Default [Sharing] Changing default port of your l2server.exe

Well It occured to me, the l2server is always running at port 7777 and well someone posted if he can change that in the help section so i figured why not experiment a bit :P

And success!
you need of course to hex the l2server.exe
so here goes:

find address: .0052BD65
bold part is the default port (7777) : 68611E0000
you can change it to whatever you like :P
(use windows calculator to convert decimal -> hexadecimal)
I changed it to: 8888 (HEX: 22B8) (edit to: B822) so like this: 68B8220000

This can prevent unwanted site connections (that show server status) so no more connection flooding at your l2server (if no one knows your l2 port, he has to search to find it, this prevents a lot of unwanted connections!)
This can also prevent connection from bots at some level

Change the entry of your server in the lin2db, server table to outerport you selected so that the authd knows the new server port and people can connect from your client!

MoSs is offline  
Old 21.09.2005, 13:50   #2
MoSs
Архивный участник
 
Join Date: Jul 2005
Posts: 108
Default

I forgot you also have to change your l2.ini
and change the port from 7777 to whatever you chose for your server
MoSs is offline  
Old 21.09.2005, 13:56   #3
UStas
Архивный участник
 
Join Date: Sep 2005
Posts: 20
Default

https://postpacific.mmorpg-game.onli...pic.php?t=2006
UStas is offline  
Old 21.09.2005, 14:23   #4
MoSs
Архивный участник
 
Join Date: Jul 2005
Posts: 108
Default

ustas maybe u posted the same thing
i dun know if this 12bd60 is the same as this .0052BD60 (in addressing)
since i dont know a lot about hexing and i am doing my first steps
i thought i share my success in hexing with all the people that might be
interested in this

and since i did not understand your post, it was just as a hint to me
so i actually searched in the decoded file for this: 7777 -> 611E or 1E61
i found a couple of addresses containing these hex values
i failed at first but then i succeded at last to changing the port...

dont spoil it for me
MoSs is offline  
Old 21.09.2005, 16:09   #5
kungfu71186
Архивный участник
 
Join Date: Jul 2005
Posts: 64
Default

Only problem is that it takes a second to decode the l2.ini and get port from that.
kungfu71186 is offline  
Old 21.09.2005, 16:14   #6
Stazis
Архивный участник
 
Join Date: Feb 2005
Posts: 200
Default

newbies =)

UserPort=<whatever port you want>

in l2server.ini
Stazis is offline  
Old 21.09.2005, 17:13   #7
Adelaide
Архивный участник
 
Join Date: Jun 2005
Posts: 82
Default

In L2walker is hardcoded 7777 as game server port and cannot be changed. (Find me someone that can disassemble L2Walker...)

Will this be then a possible solution together with L2Player to avoid L2walker (at least) to connect to the server?

L2.ini can be modified by anybody, but L2Walker cant.
Adelaide is offline  
Old 21.09.2005, 18:39   #8
hr
Архивный участник
 
Join Date: Jun 2005
Posts: 285
Default

Quote:
In L2walker is hardcoded 7777 as game server port and cannot be changed. (Find me someone that can disassemble L2Walker...)

Will this be then a possible solution together with L2Player to avoid L2walker (at least) to connect to the server?

L2.ini can be modified by anybody, but L2Walker cant.
Tested - nope L2Server starts at new port (checked by telnetting to new and old ports), but client (and L2Walker) still can connect with old settings.
hr is offline  
Old 21.09.2005, 19:07   #9
Livid
Архивный участник
 
Join Date: Apr 2005
Posts: 314
Default

Of course it can! Because port is not hardcoded, but being get from AuthD.
Livid is offline  
Old 21.09.2005, 21:42   #10
MoSs
Архивный участник
 
Join Date: Jul 2005
Posts: 108
Default

Ok 3 thinks, l2walker gets the l2server port from the authd,
so maybe we should change the authd default port and maybe patch the client

Second every one assumes that l2server.exe is running at 7777 so expect all attacks even DDOS to that port

Third i found out that you dont need to modify the port on l2.ini since the client gets the server port from authd.

But eitherway it never hurts not to run at the default port... cause you minimize as much as possible the attacks mainly from newbies and script kiddies :P

See my point?

ps. Didn't see any value in l2server.ini :P so i figured it cannot be changed from there but anyways I achieved something I thought I could never do :P
MoSs is offline  
Old 21.09.2005, 22:49   #11
Adelaide
Архивный участник
 
Join Date: Jun 2005
Posts: 82
Default

Quote:
Originally Posted by Livid
Of course it can! Because port is not hardcoded, but being get from AuthD.
Didnt know this.
Adelaide is offline  
Old 17.10.2005, 10:56   #12
khul
Архивный участник
 
Join Date: Oct 2005
Posts: 153
Default

mmmmmmmm

when you connect with client to server just :

cmd>netstat -n

and IP and active ports will be displayed in the console window....
wouldnt this just show up the port you are using w/e it is ?


ps.: not my intemption to flame.Just trying to colaborate all i can =)
khul is offline  
Old 17.10.2005, 19:32   #13
demon
Архивный участник
 
Join Date: May 2005
Posts: 367
Default

Quote:
i dun know if this 12bd60 is the same as this .0052BD60 (in addressing)
LOL

i guess you dont know what search is also
demon is offline  
Old 21.10.2005, 20:18   #14
top-gear
Архивный участник
 
Join Date: Aug 2005
Posts: 605
Default

both client and walker redirects you automatically to the new port. you can't prevent anything by changng the port
top-gear is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 22:45.