Page 1 of 2
[Resolved]Cannot assign requested address: JVM_Bind
Posted: Wed Aug 31, 2011 4:36 pm
by pavel2451
Hi All, i have changed IPs and i try to run login server and see me this error
Any idea how to fix ?
PS: LAST trunk revision and My provider today changed IP to Public IP
IPs = internet connection not thinks configs
VIII 31, 2011 5:59:36 ODP. com.l2jserver.loginserver.L2LoginServer <init>
SEVERE: FATAL: Failed to start the Game Server Listener. Reason: Cannot assign requested address: JVM_Bind
java.net.BindException: Cannot assign requested address: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at com.l2jserver.loginserver.FloodProtectedListener.<init>(FloodProtectedListener.java:52)
at com.l2jserver.loginserver.GameServerListener.<init>(GameServerListener.java:37)
at com.l2jserver.loginserver.L2LoginServer.<init>(L2LoginServer.java:178)
at com.l2jserver.loginserver.L2LoginServer.main(L2LoginServer.java:57)
Re: 2nd Cannot assign requested address: JVM_Bind
Posted: Wed Aug 31, 2011 4:42 pm
by MELERIX
where are your revision numbers

Re: 2nd Cannot assign requested address: JVM_Bind
Posted: Wed Aug 31, 2011 9:49 pm
by pavel2451
I have last Trunk revision
PS: LAST trunk revision and My provider today changed IP to Public IP
Re: Cannot assign requested address: JVM_Bind
Posted: Wed Aug 31, 2011 10:47 pm
by UnAfraid
You are trying to assign an ip which you don't have.
Re: Cannot assign requested address: JVM_Bind
Posted: Wed Aug 31, 2011 11:00 pm
by Origami
1. make sure you have specified IPs and ports using the correct format and these IPs are really assigned to the interface
2. make sure this socket is really free
Unix: netstat -a -n | grep LISTEN
Windows: netstat -a -n -p tcp (and have a look at LISTENING sockets)
I am pretty sure that the socket is in use especially if you had killed your java server with kill -9 because opened sockets will stay in this state for certain amount of time even if it's application dead if this socket wasn't shut down by the application.
Re: Cannot assign requested address: JVM_Bind
Posted: Thu Sep 01, 2011 8:19 am
by pavel2451
UnAfraid wrote:You are trying to assign an ip which you don't have.
Your IP Address Is: 92.240.17*.***
i have added in configs and still error
Re: Cannot assign requested address: JVM_Bind
Posted: Thu Sep 01, 2011 8:38 am
by pavel2451
Origami wrote:1. make sure you have specified IPs and ports using the correct format and these IPs are really assigned to the interface
2. make sure this socket is really free
Unix: netstat -a -n | grep LISTEN
Windows: netstat -a -n -p tcp (and have a look at LISTENING sockets)
I am pretty sure that the socket is in use especially if you had killed your java server with kill -9 because opened sockets will stay in this state for certain amount of time even if it's application dead if this socket wasn't shut down by the application.
I suing default ports and i writed correctly Ip and Ports.
and What with Listeting sockets ? I see more listeting
Re: Cannot assign requested address: JVM_Bind
Posted: Thu Sep 01, 2011 2:24 pm
by Origami
1. Shutdown your server amd make sure it is really not running (in Unix you can just check for java processes using ps ax | grep java, in windows you can open task manager or process explorer)
2. Check for listening sockets
Unix: netstat -a -n | grep LIST
Windows: netstat -a -n -p tcp | find "LIST"
PS! All of these commands are case-sensitive
you will see all opened TCP sockets. Check if there are sockets that uses your IP:port. Take into account that it depends on the IP:Port you had assigned in config.
For example you will see smth like this:
Code: Select all
C:\Users\User>netstat -a -n | find "LIST" TCP 0.0.0.0:135 0.0.0.0:0 LISTENING TCP 0.0.0.0:445 0.0.0.0:0 LISTENING TCP 0.0.0.0:3389 0.0.0.0:0 LISTENING ...
Similar picture you'll see in Unix. Look at the second column. The record 0.0.0.0:135 means that some application listening on all interfaces on port 135. For Login server you'll see 0.0.0.0:2106 or your.dedicated.ip.addr:2106 - it depends on your config. And for Game server you'll find smth like 0.0.0.0:7777.
If you'll find such lines then it means that this socket is in use by other application or this socket wasn't correctly closed by the application because the process which opened it suddenly died. If so you just have to wait about 3-5 minutes and such "dead" sockets will become available. If not then you have to find out the appwhich uses this socket. You can do it with netstat/sockstat utilites (depends on your OS) just read manpages.
Anyway this issue is quite trivial to solve and you'd better to learn some basic things about daemons/services, sockets and networking in general at least before running your own server.
All the best!
Re: Cannot assign requested address: JVM_Bind
Posted: Thu Sep 01, 2011 7:52 pm
by pavel2451
Resolved - thanks all for help
We added ports to router
Re: Cannot assign requested address: JVM_Bind
Posted: Thu Sep 01, 2011 8:07 pm
by Origami
pavel2451 wrote:Resolved - thanks all for help

We added ports to router
May be not to router but to firewall? Because firewall can deny application to open socket but router cannot.
Re: Cannot assign requested address: JVM_Bind
Posted: Fri Sep 02, 2011 7:55 am
by pavel2451
Origami wrote:pavel2451 wrote:Resolved - thanks all for help

We added ports to router
May be not to router but to firewall? Because firewall can deny application to open socket but router cannot.
aha, We added only ports into router =
Forwarding - Virtual servers menu
[HELP] JVM_Bind
Posted: Thu Apr 12, 2012 1:50 am
by sokarhost
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision
Number: 5261
L2JDP Revision
Number: 8778
Hello guys, I know that this is a question that is frequently asked, I've already tried to find answers around the web, I've tried the search bar and also google but none of articles that I've read were able to solve my problem. So here it is, when i'm trying to start the loginserver, I've got a error which imply this thing "JVM_Bind".
My Java version is : JDK 7u3 x32
Everything is fine for the gameserver console except one line which refers to "JVM_bind" as well. It seems that all my problems are connected to this "JVM_bind" but what is it ? Could someone help to resolve this problem ? Please, I'm really exhausted, I've tried everything that I could. Thank you.
Loginserver:
Starting L2J Login Server.
loading login config
L2Properties: Missing property for key - DatapackRoot
Loading mmo.properties
MLog clients using java 1.4+ standard logging.
Initializing c3p0-0.9.2-pre1 [built 27-May-2010 01:00:49 -0400; debug? true; tra
ce: 10]
Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireInc
rement -> 5, acquireRetryAttempts -> 0, acquireRetryDelay -> 500, autoCommitOnCl
ose -> true, automaticTestTable -> connection_test_table, breakAfterAcquireFailu
re -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connec
tionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSou
rceName -> 1hge1ac8m19kgbz91jyaprv|1880b02, debugUnreturnedConnectionStackTraces
-> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryCla
ssLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken ->
1hge1ac8m19kgbz91jyaprv|1880b02, idleConnectionTestPeriod -> 3600, initialPoolS
ize -> 10, jdbcUrl -> jdbc:mysql://localhost/l2jls, maxAdministrativeTaskTime ->
0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0,
maxPoolSize -> 10, maxStatements -> 0, maxStatementsPerConnection -> 100, minPoo
lSize -> 10, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0,
preferredTestQuery -> null, properties -> {user=******, password=******}, proper
tyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, statementDestroyerNumA
ctiveThreads -> -1, statementDestroyerNumConnectionsInUseAllUsers -> -1, stateme
ntDestroyerNumConnectionsInUseDefaultUser -> -1, statementDestroyerNumConnection
sWithDeferredDestroyStatementsAllUsers -> -1, statementDestroyerNumConnectionsWi
thDeferredDestroyStatementsDefaultUser -> -1, statementDestroyerNumDeferredDestr
oyStatementsAllUsers -> -1, statementDestroyerNumDeferredDestroyStatementsDefaul
tUser -> -1, statementDestroyerNumIdleThreads -> -1, statementDestroyerNumTasksP
ending -> -1, statementDestroyerNumThreads -> -1, testConnectionOnCheckin -> fal
se, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTra
ditionalReflectiveProxies -> false ]
Loading LoginController...
Cached 10 KeyPairs for RSA communication
Stored 20 keys for Blowfish communication
Loaded 127 server names
Loaded 0 registered Game Servers
Cached 10 RSA keys for Game Server communication.
Loaded 2 IP Bans.
FATAL: Failed to start the Game Server Listener. Reason: Cannot assign requested
address: JVM_Bind
java.net.BindException: Cannot assign requested address: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at com.l2jserver.loginserver.FloodProtectedListener.<init>(FloodProtecte
dListener.java:52)
at com.l2jserver.loginserver.GameServerListener.<init>(GameServerListene
r.java:37)
at com.l2jserver.loginserver.L2LoginServer.<init>(L2LoginServer.java:185
)
at com.l2jserver.loginserver.L2LoginServer.main(L2LoginServer.java:59)
Server terminated abnormaly
server terminated
Loginserver properties:
# Bind ip of the LoginServer, use * to bind on all available IPs
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: * (0.0.0.0)
LoginserverHostname = *
# Default: 2106
LoginserverPort = 2106
# The address on which login will listen for GameServers, use * to bind on all available IPs
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
# Default: * (0.0.0.0)
LoginHostname = *
# The port on which login will listen for GameServers
# Default: 9014
LoginPort = 9014
Re: [HELP] JVM_Bind
Posted: Thu Apr 12, 2012 2:53 am
by MELERIX
did you read the warnings inside the configs ?

Re: [HELP] JVM_Bind
Posted: Thu Apr 12, 2012 2:59 am
by sokarhost
Yeah I've read those warnings, so what ? What shoul I understand ? I've also tried to keep the default settings and start the loginserver without editing anything and it was the same error, I've reinstalled my database to be sure that I couldn't have changed any settings and there was still the same error. Please help me.
Re: [HELP] JVM_Bind
Posted: Thu Apr 12, 2012 3:17 am
by MELERIX
you have to edit
ipconfig.xml only.
check the installation guide:
http://trac.l2jserver.com/wiki/L2J_Install