Unity: How can i connect my phone to node server - unity3d

I am making a mobile multiplayer game with Unity's socket IO a nodeJS server. when i run the mobile game from unity, it connects to the nodejs server, but when i try using my phone it doesnt connect. ws://127.0.0.1:4000/socket.io/?EIO=4&transport=websocket
Please how can I make a connection between them ?

Related

Make flask app visible outside my own network on ubuntu

so im developing my own flask APP and I want to make it be visible to everyone outside my network since by setting host to "0.0.0.0" my website can only be accessed on every device in my network but not with people that is out of my network, Is there any way to make my flask app visible to everyone outside my network being hosted on a linux ubuntu device? (raspberry pi4)

How to make client app automatically connect to the server app with ServerSocket in Adobe AIR without typing IP and port?

I use ServerSocket and Socket in ActionScript 3 to connect from Flash Player to AIR applicaion in LAN network.
The thing is, on the client player, I must type the server IP address to connect the AIR app. Is there any way to connect to the server automatically without typing IP address?

Unity client server is not connected while using sendbychannel

while running the unity game engine as client and server in one machine, working perfectly fine just initially its giving error,
NetworkClient SendByChannel when not connected to a server
UnityEngine.Networking.NetworkClient:SendByChannel(Int16, MessageBase, Int32)
playerController:Update()
Can anyone please tell me why this error is coming?
Here the client is sending his position and server renders the texture and sends it back to him. But when the client is running on the Android (mobile) and server on the desktop, every time I am getting
NetworkClient SendByChannel when not connected to a server.
I can't set the connection between server and client.
Can anyone please tell me why the connection is not getting set up?
The channel ID is same and everything I checked (IP and port no about firewall). Nothing list above is a problem.

Is it possible to connect between NetworkManager (HLAPI) in Unity3D and socket server?

I try to connect between NetworkManager (HLAPI) in Unity3D and Socket server.
I have already tried to connect two Unity applications using HLAPI or LLAPI. It works well. But HLAPI or LLAPI Unity client can't connect to Socket server (python).
I think that HLAPI or LLAPI supports to connect among Unity3D applications. Is it right?
Is it possible to connect between NetworkManager (HLAPI) in Unity3D
and socket server?
The short answer is No.
These are two different protocols.
I once tried it. It seems to connect secretly then immediately disconnect. I can't remember if I tried it with TCP or UDP but you can't just do that.
HLAPI or LLAPI are built on on top of the UDP protocol and possibly TCP too in newer Unity version. In order to connect to it with an application not made with Unity, you will have to reverse engineer the HLAPI or LLAPI protocol and understand how they both connect to each other(Handshake) then build a custom API for python using raw socket.
If you want to communicate between Unity and a program made with python, I suggest you use standard socket (TCP/UPD). This is more less hassle and will allow your app to work with any language that supports socket.

iOS App XMPP chat server requirements

We are planning to start a new iPhone chat app using XMPP. We didn't have any online VPS server now. We have a local server, on that openfire & XMPP is alredy installed. (We are using it for our local network chat on computers)
So my doubt is that can I start working on the iOS app with that local server now and later (after completing the app) is it possible to change to the online VPS server or need to start with online VPS server ?
Thanks in advance.
Its possible.
I started to develop the app on the local server by setting the xmppStrem hostName as the local server IP address.