[HELP] JVM_Bind
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 61
- Joined: Thu Feb 17, 2011 1:52 pm
[Resolved]Cannot assign requested address: JVM_Bind
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)
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)
Last edited by pavel2451 on Thu Sep 01, 2011 7:52 pm, edited 2 times in total.
- MELERIX
- L2j Veteran
- Posts: 6667
- Joined: Sat Sep 23, 2006 11:31 pm
- Location: Chile
- Contact:
-
- Posts: 61
- Joined: Thu Feb 17, 2011 1:52 pm
Re: 2nd Cannot assign requested address: JVM_Bind
I have last Trunk revision
PS: LAST trunk revision and My provider today changed IP to Public IP
PS: LAST trunk revision and My provider today changed IP to Public IP
- UnAfraid
- L2j Veteran
- Posts: 4199
- Joined: Mon Jul 23, 2007 4:25 pm
- Location: Bulgaria
- Contact:
- Origami
- Posts: 21
- Joined: Mon May 18, 2009 5:54 pm
- Location: Moscow/Russia
Re: Cannot assign requested address: JVM_Bind
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.
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.
Месть - это блюдо, которое подают в тапки...
-
- Posts: 61
- Joined: Thu Feb 17, 2011 1:52 pm
Re: Cannot assign requested address: JVM_Bind
Your IP Address Is: 92.240.17*.***UnAfraid wrote:You are trying to assign an ip which you don't have.
i have added in configs and still error
-
- Posts: 61
- Joined: Thu Feb 17, 2011 1:52 pm
Re: Cannot assign requested address: JVM_Bind
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
- Origami
- Posts: 21
- Joined: Mon May 18, 2009 5:54 pm
- Location: Moscow/Russia
Re: Cannot assign requested address: JVM_Bind
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:
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!
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 ...
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!
Месть - это блюдо, которое подают в тапки...
-
- Posts: 61
- Joined: Thu Feb 17, 2011 1:52 pm
Re: Cannot assign requested address: JVM_Bind
Resolved - thanks all for help 
We added ports to router

We added ports to router
- Origami
- Posts: 21
- Joined: Mon May 18, 2009 5:54 pm
- Location: Moscow/Russia
Re: Cannot assign requested address: JVM_Bind
May be not to router but to firewall? Because firewall can deny application to open socket but router cannot.pavel2451 wrote:Resolved - thanks all for help
We added ports to router
Месть - это блюдо, которое подают в тапки...
-
- Posts: 61
- Joined: Thu Feb 17, 2011 1:52 pm
Re: Cannot assign requested address: JVM_Bind
aha, We added only ports into router = Forwarding - Virtual servers menuOrigami wrote:May be not to router but to firewall? Because firewall can deny application to open socket but router cannot.pavel2451 wrote:Resolved - thanks all for help
We added ports to router
-
- Posts: 5
- Joined: Wed Apr 11, 2012 10:22 am
[HELP] JVM_Bind
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:
» 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:
Loginserver properties: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
# 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
Last edited by sokarhost on Thu Apr 12, 2012 4:43 am, edited 2 times in total.
- MELERIX
- L2j Veteran
- Posts: 6667
- Joined: Sat Sep 23, 2006 11:31 pm
- Location: Chile
- Contact:
-
- Posts: 5
- Joined: Wed Apr 11, 2012 10:22 am
Re: [HELP] JVM_Bind
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.
- MELERIX
- L2j Veteran
- Posts: 6667
- Joined: Sat Sep 23, 2006 11:31 pm
- Location: Chile
- Contact:
Re: [HELP] JVM_Bind
you have to edit ipconfig.xml only.
check the installation guide: http://trac.l2jserver.com/wiki/L2J_Install
check the installation guide: http://trac.l2jserver.com/wiki/L2J_Install