Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by robertdemjan · Jan 12 at 02:48 AM · Custom Game Serversmultiplayerwindows

Azure Multiplayer server cannot connect to websocket

Hello!

I've been tasked to migrate our custom multiplayer server from the legacy version, to the new azure version, since the legacy is going away, but I've hit a wall, I don't know how to solve.

Our multiplayer game server is connecting to a third-party server via websocket (443 TCP, should be), to inform our backend about the game state, get player data, and so on. This worked fine on the legacy server, but the new azure server solution simply blocks the connection attempt.

We only receive this error, but most of the time it doesn't even answer: Received websocket error: NET - The connection to the given server / port failed

I don't think it's certification problem, that is usually a different step, giving different error.

According to documentation, outgoing connections do not need to be configured, and should work out of the box.

Using Windows Containers, DV2 server, if it matters.

Thank you for your help

Comment

People who like this

0 Show 4
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SethDu ♦ · Jan 12 at 07:41 AM 0
Share

What's your title ID? How do you configurate the server build?

avatar image robertdemjan SethDu ♦ · Jan 12 at 08:16 AM 0
Share

Thank you for your answer!

My Title ID is 2ABB. I've used Dv2 virtual machine, 5 process per server, Windows, Container, Read Only assets, WestUS region with 1 standby and 1 maximum server, UDP port open at 9000. That's all the configuration I have.

avatar image SethDu ♦ robertdemjan · Jan 12 at 08:26 AM 0
Share

Ports in the Network section of server build configuration page are used to enable the permission for server build container to communicate with external Internet. It is like firewall whitelist. Would you try to add 443 TCP port in the Network field?

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · Jan 13 at 03:05 AM

You are also able to remotely connect to the VM that hosts your server build (RDP details can be seen in Game Manger), which is running in Windows Server OS. You may also enter the Docker container via PowerShell for debugging.

Moreover, though outbound doesn't require additional configuration, there is port mapping during inbound communication -- [external internet] -> [Azure VM] -> [Docker container (your running server instance)]. So, it is also possible that your customized server doesn't get the actual port number of your instance. I am not very familiar with WebSocket, but you may need to add additional functions to your external server to receive the connection details of server instance, like one-way http listener.

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    UE4 GSDK Server always returning Unhealthy 1 Answer

    CUSTOM Multiplayer server DDOS 1 Answer

    Playfab multiplayer server can't connect to Epic Online Services (SSL error) 9 Answers

    ​PowerShell maxes CPU usage - Multiplayer Servers 1 Answer

    How can I use PlayFab to host my game made with MLAPI (unity)? ,How can I use PlayFab to host a multiplayer game built with Unity MLAPI?,Is there any tutorial on how to use PlayFab with MLAPI in Unity? 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges