Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

WebSocket Connection from offline FieldServiceMobile

(1) ShareShare
ReportReport
Posted on by 25

Hello everyone,

we encounter a problem using web sockets from within the Field Service Mobile app (downloaded from Microsoft Store).

On some computers we are able to open a web socket connection to a web socket server on the same machine:
const socket = new WebSocket("ws://localhost:9001");

On other computers the connection attempts fail with timeout errors and the web sockets get closed.
We have exactly the same app version isntalled on both machines.
Opening a web socket connection in the Edge browser with the same locally hosted web socket server works fine on all computers.


Information of the computer where it works:

Microsoft Dynamics 365 Field Service app: 2022 release wave 2 enabled App name: Field Service Mobile Organization name: SICK DEV SANDBOX Server version: 9.2.22103.00194 App version: 3.22113.10.0.0 (1,1) Client version: 1.4.4957-2210.3 Session ID: 7009f132-9c4d-44d3-a825-c4fed844ea18 External correlation ID: 5ba6213a-0edb-4c3d-98bb-35a44a3710e2 Time: 2.12.2022 11:02:04 GMT+0100 (Mitteleuropäische Normalzeit) Edge Version: 107.0.1418.62 (Offizielles Build) (64-Bit) --------------

Information of the computer where it does not work (same as above):

Microsoft Dynamics 365 Field Service app: 2022 release wave 2 enabled App name: Field Service Mobile Organization name: SICK DEV Server version: 9.2.22103.00194 App version: 3.22113.10.0.0 (1,1) Client version: 1.4.4957-2210.3 Session ID: ede9a6cd-fc9f-4336-9e11-a15f98bed07c External correlation ID: 97b70327-a80c-4efc-854b-589ee7932260 Time: 12/2/2022 11:11:17 AM GMT+0100 (Central European Standard Time) Edge Version: 107.0.1418.62 (Official build) (64-bit) --------------


pastedimage1671121784541v1.png

Are there some settings in the app that would prevent the socket connection?

Even though the connections work fine in MS Edge, we compared all Edge settings and found no difference there. The problem occurs in both, online and offline mode of the Field Service Mobile app.

  • Leco Lv Profile Picture
    on at
    RE: WebSocket Connection from offline FieldServiceMobile

    Hi RoKon,

    It seems to be related to the following details. I hope it helps.

    Proxy servers and firewalls. Check if you have a proxy server or firewall that blocks WebSocket access. Try using a different web browser.

    stackoverflow.com/.../websocket-connection-to-ws-mydomain-com8084-peer-id-123-failed-error-in-c
    stackoverflow.com/.../websocket-connection-to-failed-error-in-connection-establishment-neterr-conn

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans