Create a dart udp or tcp server inside a flutter app - flutter

I'm making a multiplayer game in flutter and I wanted to know if it was possible to create a server in a flutter app.
Here is what I want to do :
You'll have a home page where you can choose between host a game and join a game. If you choose to host a game, it create a server and shows your IP adress.
If you choose to join a game, you can enter an IP adress and join the game that the other has create.
I'm open to any other solutions to connect two or more phones without extern server. It can be bluetooth connexion, wifi connextion or anything. Can someone help me ?

Related

How to get ip of all connected devices in lua love2d

I am making a buzzer app where one Person creates a room and other join it to play the buzzer round
The room creator creates a hotspot and other devices connect to that hotspot.
Now I have one problem here, how does the other people who want to join the room find the room?
How do i get all the ip address of people who are connected to my hotspot?
So that way i can send them the room details.
The language is lua and framework i use is love2d

dart flutter : How to detect and connect to hidden wifi around my device using flutter-dart?

I'm working on a IoT project for a smart home device using NodeMCU.
For mobile application part I need to connect my microcontroller (NodeMCU) to my phone by hidden wifi not by normal visible wifi connections. Any help will be very much appreciated.

HomeKit doesn't work if I'm connected to my lan network over VPN

I have some IoT in my house and are also added to my Home app from my Iphone.
I don't have a Hub for this, can be accessed only from my local WiFi and that's what I actually want.
I also have a VPN inside my router so I can access my local WiFi from anywhere.
The problem is that I can't access my devices from my Home app while connected to my VPN inside my router. I'd like to mention that I can access them with the specific app (e.g. I can turn off/on the lights inside Hue App, but not Home App when outside my WiFi but connected to it via VPN).
Is it there a port that needs to be forwarded or something that I need to do from my end to be able to manage everything with Home app and not be forced to go the each app specifically?
Regards,

How does a windows phone sockets game work ? Bluetooth? XBOX LIVE api ?

Must a game be client server which then requires me to stand up a server? If so, can I do that on a web host? Azure? ..
If not, then how do the 2 window phone clients find each other?
I am having difficulty understand the main blocks invovled in doing this and how they come together...
What about bluetooth ? From what I have read so far there is no access to the bluetooth api ?
Is there or wil lthere be any helpers from xbox live and thier api to let a indie dev set up connections ?
There are 2 options for creating a real time multiplayer game.
Devices connect over the internet or used a web based mediator to relay game data.
Devices connet via sockets over UDP.
If you choose option 1 then you can host your web based component anywhere.
If you choose 2 then there is a sample that may be of interest at http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx
There is, currently, no support for working with BlueTooth in the API.

How to connect iPhone Safari to Windows HTTP server?

I'm completely new to the iPhone, so this is a newbie question.
The web development environment I use at work is set up on Windows 7, running Tomcat as a web server. Web Apps are tested by pointing a browser to "localhost".
I've been asked to port a web front end to the iPhone. Since I need to use this same development environment I need to connect the iPhone to the PC via USB or Ethernet.
There is this answer:
"http://stackoverflow.com/questions/3132105/how-do-you-access-a-website-running-on-localhost-from-iphone-browser"
but I was hoping to do it without wireless.
Other questions I've researched are about iPhone development, the SDK, etc. I'm not developing iPhone code, only trying to get the iPhone Safari browser to access the IP address of the local PC, 192.168.xx.xx or whatever.
Seems like it should be simple, a matter of cabling?
it would be an issue of cabling... if the iPhone had an eternet jack :)
But the wifi connection is the only "network jack" the phone has that you can connect to your own network directly with, the 3G or CDMA port gets routed via your mobile phone company, nothing you can do about that. Hence the need for WiFi to access non-routable addresses, like ...
Another option would be to make your server internet-routable, like middapark said. Then you can access it via your mobile phone provider's network and the public internet and can do away with the need to use Wifi.
A third option is to create a VPN tunnel from your iPhone to your local network, again via your mobile phone provider's network and the public internet. But I have no expereince with doing that, so I can not give further advice there.
The problem is most likely because you're trying to get your iPhone to view an internal (i.e.: not internet viewable) network. (Address such as 192.168.0.0, 172.16.0.0 and 10.0.0.0 and are non-routable as far as the internet as a whole is concerned.)
As such, unless you can access your internal network via wifi (or you're prepared to expose the machine in question to the internet, in which case you'll need to use a different IP address) this isn't possible.