V-eGa Posted April 22, 2012 Posted April 22, 2012 Paidia exw spasei to kefali mou apto proi. Usarw l2j freya latest rev (an k dn exei simasia)enimerotika. To server moy trexei kanonika me local ip 127.0.0.1 alla twra thelw na to sikwsw gia na boune 2 filoi apto spiti tous. To provlima einai oti otan bazw tin external ip mou,mou bgazei to parakatw error. 22 Απρ 2012 3:12:43 πμ com.l2jserver.gameserver.GameServer <init> SEVERE: FATAL: Failed to open server socket. Reason: Cannot assign requested address: bind java.net.BindException: Cannot assign requested address: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at org.mmocore.network.SelectorThread.openServerSocket(SelectorThread.java:112) at com.l2jserver.gameserver.GameServer.<init>(GameServer.java:455) at com.l2jserver.gameserver.GameServer.main(GameServer.java:491) Ta configs mou sto server.properties einai ta parakatw: # --------------------------------------------------------------------------- # Game Server Settings # --------------------------------------------------------------------------- # This is the server configuration file. Here you can set up the connection information for your server. # This was written with the assumption that you are behind a router. # Dumbed Down Definitions... # LAN (LOCAL area network) - typically consists of computers connected to the same router as you. # WAN (WIDE area network) - typically consists of computers OUTSIDE of your router (ie. the internet). # x.x.x.x - Format of an IP address. Do not include the x'es into settings. Must be real numbers. # --------------------------------------------------------------------------- # Networking # --------------------------------------------------------------------------- # Where's the Login server this gameserver should connect to # 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: 127.0.0.1 LoginHost = * # TCP port the login server listen to for gameserver connection requests # Default: 9014 LoginPort = 9014 # Bind address for gameserver. You should not need to change it in most cases. # 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) GameserverHostname = 2.85.27.192 # Default: 7777 GameserverPort = 7777 kai gia to loginserver: # --------------------------------------------------------------------------- # Login Server Settings # --------------------------------------------------------------------------- # This is the server configuration file. Here you can set up the connection information for your server. # This was written with the assumption that you are behind a router. # Dumbed Down Definitions... # LAN (LOCAL area network) - typically consists of computers connected to the same router as you. # WAN (WIDE area network) - typically consists of computers OUTSIDE of your router (ie. the internet). # x.x.x.x - Format of an IP address. Do not include the x'es into settings. Must be real numbers. # --------------------------------------------------------------------------- # Networking # --------------------------------------------------------------------------- # 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 = 2.85.27.192 # 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 Episis to ipconfig.xml mou einai: <?xml version="1.0" encoding="UTF-8"?> <!-- Externalhost here (Internet IP) or Localhost IP for local test --> <gameserver address="2.85.27.192" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ipconfig.xsd"> <!-- Localhost here --> <define subnet="127.0.0.0/8" address="127.0.0.1" /> <!-- Internalhosts here (LANs IPs) --> <define subnet="10.0.0.0/8" address="10.0.0.0" /> <define subnet="172.16.0.0/19" address="172.16.0.0" /> <define subnet="192.168.0.0/16" address="192.168.0.0" /> </gameserver> As boithisei kapios giati tha petaksw to pc apto balkoni. Thanks in advice!
0 pirama Posted April 22, 2012 Posted April 22, 2012 to Game server kai to liginserver den ta pirazis katholoy <?xml version="1.0" encoding="UTF-8"?> <!-- Externalhost here (Internet IP) or Localhost IP for local test --> <gameserver address="<---- tin ip soy ---->" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ipconfig.xsd"> <!-- Localhost here --> <define subnet="127.0.0.0/8" address="127.0.0.1" /> <!-- Internalhosts here (LANs IPs) --> <define subnet="10.0.0.0/8" address="10.0.0.0" /> <define subnet="172.16.0.0/19" address="172.16.0.0" /> <define subnet="192.168.0.0/16" address="192.168.0.0" /> <--edw mpori tha theli allagi </gameserver> pia einai h lan ip soy? an einai 192.168.1.2 prepei na to kanis etsi <define subnet="192.168.0.0/16" address="192.168.1.100" />
0 Dragic Posted April 22, 2012 Posted April 22, 2012 eleos , pigene gameserver/config/kai tha deis ena file XML me name : ipconfig . To anigis me deksi click / epeksergasia kai tha sou vgalei auto : <?xml version="1.0" encoding="UTF-8"?> <!-- Externalhost here (Internet IP) or Localhost IP for local test --> <gameserver address="127.0.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ipconfig.xsd"> <!-- Localhost here --> <define subnet="127.0.0.0/8" address="127.0.0.1" /> <!-- Internalhosts here (LANs IPs) --> <define subnet="10.0.0.0/8" address="10.0.0.0" /> <define subnet="172.16.0.0/19" address="172.16.0.0" /> <define subnet="192.168.0.0/16" address="192.168.0.0" /> </gameserver> ekei pou leei auto : <gameserver address="127.0.0.1" anamesa sta " " tha valeis tin ip tou server sou p.x. <gameserver address="mynoip.servebeer.com" einai pl eukolo.
0 V-eGa Posted April 22, 2012 Author Posted April 22, 2012 to Game server kai to liginserver den ta pirazis katholoy <?xml version="1.0" encoding="UTF-8"?> <!-- Externalhost here (Internet IP) or Localhost IP for local test --> <gameserver address="<---- tin ip soy ---->" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ipconfig.xsd"> <!-- Localhost here --> <define subnet="127.0.0.0/8" address="127.0.0.1" /> <!-- Internalhosts here (LANs IPs) --> <define subnet="10.0.0.0/8" address="10.0.0.0" /> <define subnet="172.16.0.0/19" address="172.16.0.0" /> <define subnet="192.168.0.0/16" address="192.168.0.0" /> <--edw mpori tha theli allagi </gameserver> pia einai h lan ip soy? an einai 192.168.1.2 prepei na to kanis etsi <define subnet="192.168.0.0/16" address="192.168.1.100" /> Diladi moy les oti sto gameserver kai sto login afinw tis ip opws einai apo default 127.0.0.1 i * kai to mono pou alazw gia eina isto ipconfig.xml. gia na boroune na boyne oi filou mou.. I lan ip mou (tou royter mou dld einai 192.168.1.1 , mipos prepei na ginei etsi? <define subnet="192.168.0.[glow=red,2,300]1[/glow]/16" address="192.168.1.[glow=red,2,300]1[/glow]" /> ? Prepei na ekana lathos, i lan ip mou patontas ipconfig sto cmd prepei na einai i prwth prwth pou mou bgazei 192.168.1.64 (dieythinsi IP), 255.255.255.0 (maska ipodiktiou), 192.168.1.1 (proepilegmeni pili). pia einai telika? 192.168.1.64? i 192.168.1.1? Twra Ebala ta default kai to mono pou alaksa einai sto ipconfig.xml. Afou fortose kanonika to login , paw na fortosw to gameserver..kanei load kanonika mexri to telos , alla sto telos spammarei ena minima. Connecting to login on *:9014 Connecting to login on *:9014 Connecting to login on *:9014 Connecting to login on *:9014 Connecting to login on *:9014 Connecting to login on *:9014 kathe 2 deuterolepta leei auto..
0 ChяisteR Posted April 22, 2012 Posted April 22, 2012 Κάνε μου pm με το id και το pass του teamviewer να στο φτιαξω. Γιατί απο έδω δεν καταλαβαίνω τιποτα.
0 V-eGa Posted April 22, 2012 Author Posted April 22, 2012 Problem Solved by Christer!!(big thx) Lock the topic!
Question
V-eGa
Paidia exw spasei to kefali mou apto proi.
Usarw l2j freya latest rev (an k dn exei simasia)enimerotika.
To server moy trexei kanonika me local ip 127.0.0.1
alla twra thelw na to sikwsw gia na boune 2 filoi apto spiti tous.
To provlima einai oti otan bazw tin external ip mou,mou bgazei to parakatw error.
22 Απρ 2012 3:12:43 πμ com.l2jserver.gameserver.GameServer <init>
SEVERE: FATAL: Failed to open server socket. Reason: Cannot assign requested address: bind
java.net.BindException: Cannot assign requested address: bind
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at org.mmocore.network.SelectorThread.openServerSocket(SelectorThread.java:112)
at com.l2jserver.gameserver.GameServer.<init>(GameServer.java:455)
at com.l2jserver.gameserver.GameServer.main(GameServer.java:491)
Ta configs mou sto server.properties einai ta parakatw:
kai gia to loginserver:
Episis to ipconfig.xml mou einai:
As boithisei kapios giati tha petaksw to pc apto balkoni.
Thanks in advice!
5 answers to this question
Recommended Posts