What's Wrong with my photon server

AzerothAzeroth
edited July 26 in Photon Server
When I try to start my application, something wrong happened. It reminds me that name already in use with the host address. But I checked that the port 5055 is opening and no other program occupies port 5055. How can i resolve the exception

Here is the error log
1352: 12:24:38.500 - No RTT ACK adjustment timeout
1352: 12:24:38.500 - About to load application: Master from Photon.LoadBalancing
1352: 12:24:38.500 - Auto restart is enabled for application, existing connections will be terminated during restart
1352: 12:24:38.500 - Application will restart 1000ms after the last change detected
1352: 12:24:38.500 - Application will restart if files matching the following are changed: "dll;config"
1352: 12:24:38.500 - Application will NOT restart if files matching the following are changed: "log4net.config"
1352: 12:24:38.625 - Taking reference on default app domain
1352: 12:24:38.734 - Application: "Master" started in app domain: 2
1352: 12:24:38.734 - About to load application: Game from Photon.LoadBalancing
1352: 12:24:38.734 - Auto restart is enabled for application, existing connections will be terminated during restart
1352: 12:24:38.734 - Application will restart 1000ms after the last change detected
1352: 12:24:38.734 - Application will restart if files matching the following are changed: "dll;config"
1352: 12:24:38.734 - Application will NOT restart if files matching the following are changed: "log4net.config"
1352: 12:24:38.844 - Taking reference on default app domain
1352: 12:24:39.031 - Application: "Game" started in app domain: 3
1352: 12:24:39.031 - About to load application: CounterPublisher from CounterPublisher
1352: 12:24:39.031 - Auto restart is enabled for application, existing connections will be terminated during restart
1352: 12:24:39.031 - Application will restart 1000ms after the last change detected
1352: 12:24:39.031 - Application will restart if files matching the following are changed: "dll;config"
1352: 12:24:39.031 - Application will NOT restart if files matching the following are changed: "log4net.config"
1352: 12:24:39.156 - Taking reference on default app domain
1352: 12:24:39.265 - Application: "CounterPublisher" started in app domain: 4
1352: 12:24:39.265 - Adding TCP listener on: 0.0.0.0: 4530 with a listen backlog of: 150
1352: 12:24:39.265 - TCP inactivity timeout: 10000ms
1352: 12:24:39.265 - TCP disconnect timeout: 120000ms
1352: 12:24:39.265 - MaxInboundMessageSize: 512000
1352: 12:24:39.265 - MaxOutboundMessageSize: 512000
1352: 12:24:39.265 - Forcing all applications ids to: "Master"
1352: 12:24:39.265 - Serving policy file requests from: "D:\OneDrive\work\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\Policy\assets\socket-policy.xml"
1352: 12:24:39.265 - Adding TCP listener on: 0.0.0.0: 4531 with a listen backlog of: 150
1352: 12:24:39.265 - TCP inactivity timeout: 10000ms
1352: 12:24:39.265 - TCP disconnect timeout: 120000ms
1352: 12:24:39.265 - MaxInboundMessageSize: 512000
1352: 12:24:39.265 - MaxOutboundMessageSize: 512000
1352: 12:24:39.265 - Forcing all applications ids to: "Game"
1352: 12:24:39.265 - Serving policy file requests from: "D:\OneDrive\work\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\Policy\assets\socket-policy.xml"
1352: 12:24:39.265 - Adding TCP listener on: 0.0.0.0: 4520 with a listen backlog of: 150
1352: 12:24:39.265 - TCP inactivity timeout: 5000ms
1352: 12:24:39.265 - TCP disconnect timeout: 120000ms
1352: 12:24:39.265 - MaxInboundMessageSize: 512000
1352: 12:24:39.265 - MaxOutboundMessageSize: 512000
1352: 12:24:39.265 - Forcing all applications ids to: "Master"
1352: 12:24:39.265 - MaxInboundMessageSize: 512000
1352: 12:24:39.265 - MaxOutboundMessageSize: 512000
1352: 12:24:39.265 - UDP address specified as: "0.0.0.0" adding listener to each available IPv4 address
1352: 12:24:39.265 - Adding UDP listener on: 172.17.187.81: 5055 with a listen backlog of: 500
1352: 12:24:39.265 - Adding UDP listener on: 172.17.187.81: 5055 with a listen backlog of: 500
1352: 12:24:39.265 - CService::OnException() - Exception: CNamedServerCollection::AddServer() - Name already in use: UDP:172.17.187.81:5055
1352: 12:24:39.265 - Server shutting down...
1352: 12:24:39.265 - Shutdown monitoring enabled, 30000ms before process abort
1352: 12:24:39.265 - Notifying CLR applications of shutdown...
1352: 12:24:39.265 - RequestApplicationStop: 4
1352: 12:24:39.265 - RequestApplicationStop: 3
1352: 12:24:39.265 - RequestApplicationStop: 2
1352: 12:24:39.312 - RequestStop: defalt app domain
1352: 12:24:39.312 - Shutting down WebSocket Outbound Connection Manager...
1352: 12:24:39.312 - Shutting down TCP Outbound Connection Manager...
1352: 12:24:39.312 - Shutting down ENet Outbound Connection Manager...
1352: 12:24:39.312 - Disconnecting all outbound peers...
1352: 12:24:39.312 - Shutting down ENet host...
1352: 12:24:39.312 - Disconnecting all peers...
1352: 12:24:39.312 - Shutting down socket servers...
1352: 12:24:39.312 - Shutting down ENet thread pool...
1352: 12:24:39.312 - Shutting down TCP inactivity timers...
1352: 12:24:39.312 - WaitingForShutdownToComplete: TCP:0.0.0.0:4520
1352: 12:24:39.343 - Service shutting down: with Exception (1). Errorcode: 6
1352: 12:24:39.343 - Service shut down complete

Comments

  • hi, @Azaroth

    it looks like you are using the same IP twice. it will be easier to see if you would provide PhotonServer.config

    best,
    ilya
  • chvetsov said:

    hi, @Azaroth

    it looks like you are using the same IP twice. it will be easier to see if you would provide PhotonServer.config

    best,
    ilya

    thanks, I found that I have many IP Address, and in my PhotonServer.config, I write it 0.0.0.0. So maybe something wrong with it. After I change it to my localhost, it works well
Sign In or Register to comment.