RuneScape 2 Development > Server Tutorials

Automatic Port Forwarding

<<< (50/58) >>>

I evil I:
i got an error in my run.bat, the compile workede perfectly (im using windows 7)


--- Code: ---Loaded clipmap in 36ms.
[6/9/11 10:13 PM]: Launching HyBriD PvP...
[6/9/11 10:13 PM]: Exception in thread "main" [6/9/11 10:13 PM]: java.net.BindEx
ception: Address already in use: bind
[6/9/11 10:13 PM]:      at sun.nio.ch.Net.bind(Native Method)
[6/9/11 10:13 PM]:      at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketC
hannelImpl.java:126)
[6/9/11 10:13 PM]:      at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdapt
or.java:59)
[6/9/11 10:13 PM]:      at org.apache.mina.transport.socket.nio.SocketAcceptor.r
egisterNew(SocketAcceptor.java:363)
[6/9/11 10:13 PM]:      at org.apache.mina.transport.socket.nio.SocketAcceptor.a
ccess$800(SocketAcceptor.java:55)
[6/9/11 10:13 PM]:      at org.apache.mina.transport.socket.nio.SocketAcceptor$W
orker.run(SocketAcceptor.java:222)
[6/9/11 10:13 PM]:      at org.apache.mina.util.NamePreservingRunnable.run(NameP
reservingRunnable.java:51)
[6/9/11 10:13 PM]:      at java.lang.Thread.run(Thread.java:662)
Press any key to continue . . .
--- End code ---

(nvm im a badass and i fixed it :) )

But it didnt port forward my no-ip :( still says error connecting to server

Sharkboy2222:

--- Quote from: Sharkboy2222 on June 09, 2011, 01:39:04 AM ---i need help on mine my run.bat is

--- Quote --- @echo off
title PkPlanet Running
java -Xmx1200m -cp .;./jython.jar;./MySql/mysql-connector-java-1.7.0-ga-bin.jar server
exit
--- End quote ---
and my compiler.bat is

--- Quote --- @echo off
if exist "%programfiles%\Java" (call :compile "%programfiles%\Java\") else (goto error)
:compile
for /D %%x in ("%~1jdk*") do (set p="%%~x\bin\javac.exe")
if defined p (%p% -cp . *.java)
if defined p (goto end)
:error
echo You do not have Java installed. Please download it at the site that is about to load.
"%programfiles%\Internet Explorer\iexplore.exe" http://www.oracle.com/technetwork/java/javase/downloads/index.html
:end
echo Finished!
pause
exit
--- End quote ---

also i cannot find

--- Quote --- public static void main(String[] args)
--- End quote ---
i looked it up to see if i could find it but i couldnt

--- End quote ---
can anyone help?

aekramer:
VERY VERY Helpful! But I still have one problem with my router (Not from this :)), I portforwarded manually, I used this and I have a static IP, but when I use a Open Port check tool, as Canyouseeme.org or yougetsignal.com they still say I have no connection, I check my router has UPnP enabled, and when my server is on I can even see that it is active.. Can this be something in my modem or?...

ninjaman2:
what does it do when u click run server it auto port forward it?

jfbrenner:
Excellent application!  I have integrated your automatic port forwarding classes into a java-based server that I have written, and all works well.  However, the entry it makes in the router table refers to Runescape, which, of course, is not releated to my server.  Is there a simple way to change this, or may I have access to your source code to change it myself?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version
Powered by SMFPacks SEO Pro Mod |