Server Exception

wajdiazar
edited April 2012 in Photon Server
guys i keep getting this exception after i installed instance1 service, this is the last lines

2580: 14:17:47.538 - Application: "Policy" started in app domain: 6
2580: 14:17:47.539 - Adding TCP listener on :0.0.0.0: 4530 with a listen backlog of: 150
2580: 14:17:47.539 - Nagle disabled
2580: 14:17:47.539 - TCP inactivity timeout: 5000ms
2580: 14:17:47.539 - UDP address specified as:0.0.0.0 adding listener to each available IPv4 address
2580: 14:17:47.540 - Adding UDP listener on :192.168.1.4: 5055 with a listen backlog of: 500
2580: 14:17:47.541 - Adding UDP listener on :127.0.0.1: 5055 with a listen backlog of: 500
2580: 14:17:47.541 - Adding TCP Policy listener on :0.0.0.0: 843 with a listen backlog of: 150 and routing to application: "Policy"
2580: 14:17:47.541 - TCP inactivity timeout: 5000ms
2580: 14:17:47.541 - Adding TCP Policy listener on :0.0.0.0: 943 with a listen backlog of: 150 and routing to application: "Policy"
2580: 14:17:47.541 - TCP inactivity timeout: 5000ms
2580: 14:17:47.542 - Adding WebSocket TCP listener on :0.0.0.0: 9090 with a listen backlog of: 150
2580: 14:17:47.542 - Nagle disabled
2580: 14:17:47.542 - TCP inactivity timeout: 10000ms
2580: 14:17:47.542 - Forcing all applications ids to: "Lite"
2580: 14:17:47.727 - CService::OnException() - Exception: CSocket::Bind() 127.0.0.1:5055 - Only one usage of each socket address (protocol/network address/port) is normally permitted.
2580: 14:17:47.727 - Server shutting down...
2580: 14:17:47.727 - Notifying CLR applications of shutdown...




all application started but in the end i get this exception

my ip in the application.config was 0.0.0.0 i changed it to 127.0.0.1 and the same result nothing changed i still get this exception, i checked my ports 5055 and 5430 they are not in use, i don't know what to do i already running in this essue for 2 days, guys help me please am new to photon.

am running photon on my laptop my system is 32bit, am using wireless adapter, i have Ethernet interface but its disabled just the wireless is working.

help please :(

Comments

  • The technical reason for this is that some process already accesses the port we try to bind Photon to. 5055 is one of our default ports.
    Did you run Photon twice maybe? You can either run instance1 or InstanceLoadBalancing. Not both.

    Usually, I'd say, you don't need to run both instances at the same time.
    You will have to open the PhotonServer.config, find node "Instance1" and in it, change the "Port=" to some unused numbers. E.g. 5055 could become 5060 and 4530 could become 4540.
    The node <TCPPolicyListeners> and the node for the policy app should be either in Instance1 or in InstanceLoadBlancing. Remove both nodes for either instance.
    Note: Without the policy app, webclients usually can't connect, so once a instance has no policy app and ports configured, it won't work for those clients anymore.

    Hope this helps.
  • thanks for replay, i changed the ports to the one you told me, but still the same problem, all this happened when i install the instance1 service, now the start application inside the instance1 is disabled i uninstall photon server and removed all the services for photon and unzipped it to another path and same problem same error and the start application is disabled, this is locally on my laptop in the server that we have in our company i didnt do any thing except i unzipped photon and install it in windows server 2008 and opend the needed ports and its running just perfect.
  • Then, obviously, some application is using that port on your laptop.

    Try to find out which app is using the port and stop it:
    http://stackoverflow.com/questions/4819 ... on-windows

    OR configure the server with another port. In the config (and your client) you could assign 5056 or anything else to the UDP ports.