Mythruna
April 24, 2024, 11:21:09 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to the new forums. See "Announcements" for a note for new users.
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: Dedicated Server - UDP Issue  (Read 12854 times)
ThrudUK
Newbie
*
Posts: 13


View Profile
« on: August 01, 2013, 12:21:21 PM »

I've recently set up a server using the default port on Windows Server 2008 R2
I have opened up the port for TCP and UDP and can get to the register screen but then it tells me that the client isn't receiving UDP messages.

I can see from the console that my connection is getting so far.....

Code:
19:40:03,951 INFO  [SelectorKernel] Hosting TCP connection:0.0.0.0/0.0.0.0:4234.

19:40:03,954 INFO  [SelectorKernel] Kernel started for connection:0.0.0.0/0.0.0.
0:4234.
19:40:03,980 INFO  [UdpKernel] Hosting UDP connection:0.0.0.0/0.0.0.0:4234.
19:40:04,014 INFO  [UdpKernel] Kernel started for connection:0.0.0.0/0.0.0.0:423
4.
19:40:04,019 INFO  [SelectorKernel] Hosting TCP connection:0.0.0.0/0.0.0.0:4235.

19:40:04,022 INFO  [SelectorKernel] Kernel started for connection:0.0.0.0/0.0.0.
0:4235.
19:40:04,022 INFO  [SelectorKernel] Hosting TCP connection:0.0.0.0/0.0.0.0:4236.

19:40:04,035 INFO  [SelectorKernel] Kernel started for connection:0.0.0.0/0.0.0.
0:4236.
19:40:04,045 INFO  [SelectorKernel] Hosting TCP connection:0.0.0.0/0.0.0.0:4237.

19:40:04,051 INFO  [SelectorKernel] Kernel started for connection:0.0.0.0/0.0.0.
0:4237.
19:40:04,086 INFO  [stats] ============== Server started ===================
mythruna>19:42:47,193 INFO  [SelectorKernel] Closing channel endpoint:NioEndpoin
t[1, java.nio.channels.SocketChannel[connected local=/46.32.233.20:4234 remote=/
95.172.236.74:50480]].

But then nothing...

Is anyone here able to connect?

Am I missing something obvious?
Logged
Sean
Donators
Hero Member
***
Posts: 598



View Profile
« Reply #1 on: August 01, 2013, 12:23:23 PM »

Have you tried port forwarding through your router?
Logged

"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
ThrudUK
Newbie
*
Posts: 13


View Profile
« Reply #2 on: August 01, 2013, 12:27:08 PM »

This is dedicated box hosted in a datacentre.  So you don't get router access, the router will allow everything through, you then control connections with windows firewall.
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5612



View Profile
« Reply #3 on: August 01, 2013, 01:34:48 PM »

If the client isn't receiving UDP messages then it's some kind of outbound problem on the server or inbound problem on your client.  The server sends periodic UDP messages to the client (several a second) and they seem not to be arriving.

Are you able to connect successfully to my public server (mythruna dot gamehost dot org)?  If you get the same error there then the problem may be on your client's firewall not letting the UDP in or something.  (I just reset my server a minute ago so there shouldn't be any problems on my end for a while.)

If you can connect there but not to your server then something is wrong on the server side and it's not letting the UDP messages out to the internet for some reason.
Logged
ThrudUK
Newbie
*
Posts: 13


View Profile
« Reply #4 on: August 01, 2013, 02:20:15 PM »

When trying to connect to you I get an error and this is the log entry :

Code:
Uncaught exception from thread:Thread[LWJGL Renderer Thread,5,main]
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at com.jme3.network.kernel.tcp.SocketConnector.<init>(SocketConnector.java:66)
at com.jme3.network.Network.connectToServer(Network.java:166)
at com.jme3.network.Network.connectToServer(Network.java:142)
at mythruna.client.net.LoginClient.<init>(LoginClient.java:57)
at mythruna.client.MainMenuState.connect(MainMenuState.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at de.lessvoid.nifty.NiftyMethodInvoker.callMethod(NiftyMethodInvoker.java:145)
at de.lessvoid.nifty.NiftyMethodInvoker.performInvoke(NiftyMethodInvoker.java:108)
at de.lessvoid.nifty.Nifty$DelayedMethodInvoke.perform(Nifty.java:1176)
at de.lessvoid.nifty.Nifty.invokeMethods(Nifty.java:1154)
at de.lessvoid.nifty.Nifty.handleDynamicElements(Nifty.java:312)
at de.lessvoid.nifty.Nifty.access$1500(Nifty.java:73)
at de.lessvoid.nifty.Nifty$NiftyInputConsumerImpl.processEvent(Nifty.java:1371)
at de.lessvoid.nifty.Nifty$NiftyInputConsumerImpl.processMouseEvent(Nifty.java:1329)
at com.jme3.niftygui.InputSystemJme.onMouseButtonEventQueued(InputSystemJme.java:161)
at com.jme3.niftygui.InputSystemJme.forwardEvents(InputSystemJme.java:236)
at de.lessvoid.nifty.Nifty.update(Nifty.java:248)
at com.jme3.niftygui.InputSystemJme.endInput(InputSystemJme.java:92)
at com.jme3.input.InputManager.processQueue(InputManager.java:787)
at com.jme3.input.InputManager.update(InputManager.java:851)
at com.jme3.app.Application.update(Application.java:605)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:233)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:149)
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:182)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:223)
at java.lang.Thread.run(Unknown Source)

Build version:20120627

Memory usage:
Working memory: 53% (9449520/17555456)  VM Max: 1% (9449520/518979584)

Rendering caps:
    FrameBuffer
    FrameBufferMRT
    FrameBufferMultisample
    TextureMultisample
    OpenGL20
    OpenGL21
    OpenGL30
    OpenGL31
    OpenGL32
    ARBprogram
    GLSL100
    GLSL110
    GLSL120
    GLSL130
    GLSL140
    GLSL150
    VertexTextureFetch
    TextureArray
    TextureBuffer
    FloatTexture
    FloatColorBuffer
    FloatDepthBuffer
    PackedFloatTexture
    SharedExponentTexture
    PackedFloatColorBuffer
    TextureCompressionLATC
    NonPowerOfTwoTextures
    MeshInstancing
    VertexBufferArray

Statistics:
  Vertices = 452
  Triangles = 226
  Uniforms = 110
  Objects = 58
  Shaders (S) = 15
  Shaders (F) = 6
  Shaders (M) = 6
  Textures (S) = 15
  Textures (F) = 12
  Textures (M) = 14
  FrameBuffers (S) = 5
  FrameBuffers (F) = 4
  FrameBuffers (M) = 4
Application settings:
UseInput = true
AudioRenderer = LWJGL
Height = 720
Renderer = LWJGL-OpenGL2
BitsPerPixel = 24
Fullscreen = false
StencilBits = 0
DepthBits = 24
VSync = true
Frequency = -1
Width = 1280
Samples = 0
DisableJoysticks = true
FrameRate = -1

Display adapter information:
Adapter:aticfx64
Driver Version:null
Vendor:ATI Technologies Inc.
Version:4.2.12217 Compatibility Profile Context 12.104.0.0
Renderer:AMD Radeon HD 6900 Series
GLSL Ver:4.20

Uncaught exception from thread:Thread[LWJGL Renderer Thread,5,main]
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at com.jme3.network.kernel.tcp.SocketConnector.<init>(SocketConnector.java:66)
at com.jme3.network.Network.connectToServer(Network.java:166)
at com.jme3.network.Network.connectToServer(Network.java:142)
at mythruna.client.net.LoginClient.<init>(LoginClient.java:57)
at mythruna.client.MainMenuState.connect(MainMenuState.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at de.lessvoid.nifty.NiftyMethodInvoker.callMethod(NiftyMethodInvoker.java:145)
at de.lessvoid.nifty.NiftyMethodInvoker.performInvoke(NiftyMethodInvoker.java:108)
at de.lessvoid.nifty.Nifty$DelayedMethodInvoke.perform(Nifty.java:1176)
at de.lessvoid.nifty.Nifty.invokeMethods(Nifty.java:1154)
at de.lessvoid.nifty.Nifty.handleDynamicElements(Nifty.java:312)
at de.lessvoid.nifty.Nifty.access$1500(Nifty.java:73)
at de.lessvoid.nifty.Nifty$NiftyInputConsumerImpl.processEvent(Nifty.java:1371)
at de.lessvoid.nifty.Nifty$NiftyInputConsumerImpl.processMouseEvent(Nifty.java:1329)
at com.jme3.niftygui.InputSystemJme.onMouseButtonEventQueued(InputSystemJme.java:161)
at com.jme3.niftygui.InputSystemJme.forwardEvents(InputSystemJme.java:236)
at de.lessvoid.nifty.Nifty.update(Nifty.java:248)
at com.jme3.niftygui.InputSystemJme.endInput(InputSystemJme.java:92)
at com.jme3.input.InputManager.processQueue(InputManager.java:787)
at com.jme3.input.InputManager.update(InputManager.java:851)
at com.jme3.app.Application.update(Application.java:605)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:233)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:149)
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:182)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:223)
at java.lang.Thread.run(Unknown Source)

Memory usage:
Working memory: 59% (10463016/17555456)  VM Max: 2% (10463016/518979584)

Statistics:
  Vertices = 452
  Triangles = 226
  Uniforms = 110
  Objects = 58
  Shaders (S) = 15
  Shaders (F) = 6
  Shaders (M) = 6
  Textures (S) = 15
  Textures (F) = 12
  Textures (M) = 14
  FrameBuffers (S) = 5
  FrameBuffers (F) = 4
  FrameBuffers (M) = 4

Uncaught exception from thread:Thread[LWJGL Renderer Thread,5,main]
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at com.jme3.network.kernel.tcp.SocketConnector.<init>(SocketConnector.java:66)
at com.jme3.network.Network.connectToServer(Network.java:166)
at com.jme3.network.Network.connectToServer(Network.java:142)
at mythruna.client.net.LoginClient.<init>(LoginClient.java:57)
at mythruna.client.MainMenuState.connect(MainMenuState.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at de.lessvoid.nifty.NiftyMethodInvoker.callMethod(NiftyMethodInvoker.java:145)
at de.lessvoid.nifty.NiftyMethodInvoker.performInvoke(NiftyMethodInvoker.java:108)
at de.lessvoid.nifty.Nifty$DelayedMethodInvoke.perform(Nifty.java:1176)
at de.lessvoid.nifty.Nifty.invokeMethods(Nifty.java:1154)
at de.lessvoid.nifty.Nifty.handleDynamicElements(Nifty.java:312)
at de.lessvoid.nifty.Nifty.access$1500(Nifty.java:73)
at de.lessvoid.nifty.Nifty$NiftyInputConsumerImpl.processEvent(Nifty.java:1371)
at de.lessvoid.nifty.Nifty$NiftyInputConsumerImpl.processMouseEvent(Nifty.java:1329)
at com.jme3.niftygui.InputSystemJme.onMouseButtonEventQueued(InputSystemJme.java:161)
at com.jme3.niftygui.InputSystemJme.forwardEvents(InputSystemJme.java:236)
at de.lessvoid.nifty.Nifty.update(Nifty.java:248)
at com.jme3.niftygui.InputSystemJme.endInput(InputSystemJme.java:92)
at com.jme3.input.InputManager.processQueue(InputManager.java:787)
at com.jme3.input.InputManager.update(InputManager.java:851)
at com.jme3.app.Application.update(Application.java:605)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:233)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:149)
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:182)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:223)
at java.lang.Thread.run(Unknown Source)

Memory usage:
Working memory: 74% (13099216/17555456)  VM Max: 2% (13099216/518979584)

Statistics:
  Vertices = 464
  Triangles = 232
  Uniforms = 110
  Objects = 58
  Shaders (S) = 15
  Shaders (F) = 6
  Shaders (M) = 6
  Textures (S) = 15
  Textures (F) = 12
  Textures (M) = 14
  FrameBuffers (S) = 5
  FrameBuffers (F) = 4
  FrameBuffers (M) = 4


Says my connection is refused in the client.
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5612



View Profile
« Reply #5 on: August 01, 2013, 02:26:32 PM »

That one is weird.  I'm seeing some failed logins for someone... so I know others are able to connect.

If you are getting connection refused then you might have the host wrong.  I just noticed it's game-host.org and not gamehost.org... weird that there is a mythruna answering in both cases.
Logged
ThrudUK
Newbie
*
Posts: 13


View Profile
« Reply #6 on: August 01, 2013, 02:30:40 PM »

Well, i just connected to you Wink

Interestingly, turning windows firewall off, totally makes not a bit of difference.
« Last Edit: August 01, 2013, 02:38:16 PM by ThrudUK » Logged
pspeed
Administrator
Hero Member
*****
Posts: 5612



View Profile
« Reply #7 on: August 01, 2013, 02:41:20 PM »

Well, i just connected to you Wink

Interestingly, turning windows firewall off, totally makes not a bit of difference.

If you were able to connect to me then the problem with your server must be on its sending of UDP.  The only thing I know for certain is that the UDP messages between your server and your client are getting lost... and you just confirmed that your client can physically receive them.
Logged
ThrudUK
Newbie
*
Posts: 13


View Profile
« Reply #8 on: August 01, 2013, 02:46:37 PM »

Would having multiple IPs associated with the server make any odds?

As, turning off the firewall should mean everything can get out.
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5612



View Profile
« Reply #9 on: August 01, 2013, 02:52:27 PM »

Would having multiple IPs associated with the server make any odds?

As, turning off the firewall should mean everything can get out.

Maybe.  I'm not sure, honestly.
Logged
ThrudUK
Newbie
*
Posts: 13


View Profile
« Reply #10 on: August 01, 2013, 02:59:15 PM »

I guess binding to a specific IP is something to add?
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5612



View Profile
« Reply #11 on: August 01, 2013, 03:00:42 PM »

I guess binding to a specific IP is something to add?

...if that's even the issue.  It's just odd that all of the other connections seemed to work.  And your client UDPs made it to the server ok.
Logged
ThrudUK
Newbie
*
Posts: 13


View Profile
« Reply #12 on: August 01, 2013, 03:02:41 PM »

I know...do we need an outbound UDP rule n the firewall... but even then, I turned it off to test.

Unless something else is using the port?
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5612



View Profile
« Reply #13 on: August 01, 2013, 03:58:33 PM »

I'm kind of running out of ideas, unfortunately.  If I remember right the server lets you change the UDP port... or I could be remembering wrong.  It's been a while since I ran that server interface. Smiley
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5612



View Profile
« Reply #14 on: August 01, 2013, 03:59:16 PM »

...I also don't remember for sure if the client deals with that properly.
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!