Jump to content
Sign in to follow this  
evilkittycat

Ports

Recommended Posts

Hey,

I am new to DayZ server management, and I want to change the port. I have set up the server successfully, but all I need to do is to change the port. Is it even possible or should I port forward the default port?

Share this post


Link to post
Share on other sites

hello good sir

 

you set the port when you start the server.

 

add to your server startup arguments -port=PORTNUMBER

  • Like 1

Share this post


Link to post
Share on other sites

hello good sir

 

you set the port when you start the server.

 

add to your server startup arguments -port=PORTNUMBER

 

Already tried that, still starts with the default port.

Share this post


Link to post
Share on other sites

are you using the server exe 

Edited by AmberHelios
  • Like 1

Share this post


Link to post
Share on other sites
141214 18:29:50 [Note] Plugin 'FEDERATED' is disabled.

141214 18:29:50 InnoDB: The InnoDB memory heap is disabled

141214 18:29:50 InnoDB: Mutexes and rw_locks use Windows interlocked functions

141214 18:29:50 InnoDB: Compressed tables use zlib 1.2.3

141214 18:29:50 InnoDB: Initializing buffer pool, size = 16.0M

141214 18:29:50 InnoDB: Completed initialization of buffer pool

141214 18:29:50 InnoDB: highest supported file format is Barracuda.

InnoDB: The log sequence number in ibdata files does not match

InnoDB: the log sequence number in the ib_logfiles!

141214 18:29:50  InnoDB: Database was not shut down normally!

InnoDB: Starting crash recovery.

InnoDB: Reading tablespace information from the .ibd files...

InnoDB: Restoring possible half-written data pages from the doublewrite

InnoDB: buffer...

141214 18:29:50  InnoDB: Waiting for the background threads to start

141214 18:29:51 InnoDB: 1.1.8 started; log sequence number 3145689

141214 18:29:51 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306

141214 18:29:51 [Note]   - '0.0.0.0' resolves to '0.0.0.0';

141214 18:29:51 [Note] Server socket created on IP: '0.0.0.0'.

141214 18:29:51 [Note] Event Scheduler: Loaded 1 event

141214 18:29:51 [Note] .\bin\mysqld: ready for connections.

Version: '5.5.29'  socket: ''  port: 3306  MySQL Community Server (GPL)

 

 

 

 

Just realized that this isn 't what you asked for. Here's the code in the start script:

 


@echo off

echo Starting MySQL database. Please wait 5-10 seconds.

start /D.\MySQL\ MySQL.bat

ping 127.0.0.1 -n 5 >NUL

.\MySQL\cecho {0A} OK.{07}

echo.

echo.

echo.

echo Executing spawn script...

.\MySQL\bin\mysql.exe --user=dayz --password=dayz --host=127.0.0.1 --port=25565 --database=hivemind --execute="call pMain(1)"

ping 127.0.0.1 -n 5 >NUL

.\MySQL\cecho {0A} OK.{07}

echo.

echo.

echo.

echo Starting server...

start .\Expansion\beta\arma2oaserver.exe -mod=Expansion\beta;Expansion\beta\expansion;ca;@hive;@dayz -name=cfgdayz -config=cfgdayz\server.cfg -cfg=cfgdayz\basic.cfg -profiles=cfgdayz

.\MySQL\cecho {0A} OK.{07} 

echo.

echo.

echo.

.\MySQL\cecho {0B}Launcher created by Pwnoz0r.{07}

ping 127.0.0.1 -n 5 >NUL

echo.

echo.

echo.

.\MySQL\cecho {0A}Leaving le launcher...{07}

ping 127.0.0.1 -n 5 >NUL

exit

Edited by EvilKittyCat123
  • Like 1

Share this post


Link to post
Share on other sites

start .\Expansion\beta\arma2oaserver.exe -mod=Expansion\beta;Expansion\beta\expansion;ca;@hive;@dayz -name=cfgdayz -config=cfgdayz\server.cfg -cfg=cfgdayz\basic.cfg -profiles=cfgdayz

 

did you specify the port in that line?

  • Like 1

Share this post


Link to post
Share on other sites

start .\Expansion\beta\arma2oaserver.exe -mod=Expansion\beta;Expansion\beta\expansion;ca;@hive;@dayz -name=cfgdayz -config=cfgdayz\server.cfg -cfg=cfgdayz\basic.cfg -profiles=cfgdayz

 

did you specify the port in that line?

 

Just tried that, but it still starts with the default port though.

 

@echo off
echo Starting MySQL database. Please wait 5-10 seconds.
start /D.\MySQL\ MySQL.bat
ping 127.0.0.1 -n 5 >NUL
.\MySQL\cecho {0A} OK.{07}
echo.
echo.
echo.
echo Executing spawn script...
.\MySQL\bin\mysql.exe --user=dayz --password=dayz --host=127.0.0.1 --port=25565 --database=hivemind --execute="call pMain(1)"
ping 127.0.0.1 -n 5 >NUL
.\MySQL\cecho {0A} OK.{07}
echo.
echo.
echo.
echo Starting server...
start .\Expansion\beta\arma2oaserver.exe -mod=Expansion\beta;Expansion\beta\expansion;ca;@hive;@dayz -port=25565 -name=cfgdayz -config=cfgdayz\server.cfg -cfg=cfgdayz\basic.cfg -profiles=cfgdayz
.\MySQL\cecho {0A} OK.{07} 
echo.
echo.
echo.
.\MySQL\cecho {0B}Launcher created by Pwnoz0r.{07}
ping 127.0.0.1 -n 5 >NUL
echo.
echo.
echo.
.\MySQL\cecho {0A}Leaving le launcher...{07}
ping 127.0.0.1 -n 5 >NUL
exit

Share this post


Link to post
Share on other sites

Perhaps it's being used by something else see a few lines above in the start up sequence

  • Like 1

Share this post


Link to post
Share on other sites

Perhaps it's being used by something else see a few lines above in the start up sequence

What could possibly use the port 25565?

  • Like 1

Share this post


Link to post
Share on other sites

The MySQL server 7 lines up

But I'm not using MySQL. Anyways, I just managed to port forward a port on 3306, which is the default port, but now I cant find my port on the LAN page or DayZ launcher. Here's my script:

 

@echo off
echo Starting MySQL database. Please wait 5-10 seconds.
start /D.\MySQL\ MySQL.bat
ping 127.0.0.1 -n 5 >NUL
.\MySQL\cecho {0A} OK.{07}
echo.
echo.
echo.
echo Executing spawn script...
.\MySQL\bin\mysql.exe --user=dayz --password=dayz --host=127.0.0.1 --port=3306 --database=hivemind --execute="call pMain(1)"
ping 127.0.0.1 -n 5 >NUL
.\MySQL\cecho {0A} OK.{07}
echo.
echo.
echo.
echo Starting server...
start .\Expansion\beta\arma2oaserver.exe -mod=Expansion\beta;Expansion\beta\expansion;ca;@hive;@dayz -port=3306 -name=cfgdayz -config=cfgdayz\server.cfg -cfg=cfgdayz\basic.cfg -profiles=cfgdayz
.\MySQL\cecho {0A} OK.{07} 
echo.
echo.
echo.
.\MySQL\cecho {0B}Launcher created by Pwnoz0r.{07}
ping 127.0.0.1 -n 5 >NUL
echo.
echo.
echo.
.\MySQL\cecho {0A}Leaving le launcher...{07}
ping 127.0.0.1 -n 5 >NUL
exit

Share this post


Link to post
Share on other sites

You are using MySQL server DayZ requres it set your DayZ sever to one port in the line I said before and then 7 lines up set the MySQL server to another but make sure your hive.ini says the same port as the mysql server is running on

  • Like 2

Share this post


Link to post
Share on other sites

You are using MySQL server DayZ requres it set your DayZ sever to one port in the line I said before and then 7 lines up set the MySQL server to another but make sure your hive.ini says the same port as the mysql server is running on

 

Okay, portforwarded both ports, and put different ports on each. Where is hive.ini?

Share this post


Link to post
Share on other sites

Not at this moment I'm in the pub :)

Alright, so what now? I have done everything you've said, but still it wont work. Do I actually have to have MySQL?

Share this post


Link to post
Share on other sites

MySQL is needed for the hive component

 

Ohhh. I thought it was optional. So once I've setup the mySQL database and stuff, it'll all work. Right?

Share this post


Link to post
Share on other sites

Ohhh. I thought it was optional. So once I've setup the mySQL database and stuff, it'll all work. Right?

 

If you've done everything correctly, yes. Do you know how to setup a database?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×