Comments (8)
Hello.
Ive checked the docs, looks like there's nothing to be changed in Lua code, as it already uses
socket.connect(self.server, self.port)
which is pretty much agnostic to ipv4/ipv6 changes.
BUT, you might need to make a small change in nodejs code.
Instead of
server.listen(cfg.port);
(here: https://github.com/Overtorment/NoobHub/blob/master/server/node.js#L107 )
Put
server.listen(cfg.port, "::");
(or use real ipv6 address of the server)
Let me know if that worked (you can also make a pull request)
from noobhub.
Okay, we have just tested the solution with other Noobhub users.
server.listen(cfg.port, '::');
pretty much should solves all issues.
If not - post detailed about what errors it throws.
from noobhub.
Hello, I am not using node.js for server. I have created my own server socket with c#. I have changed some logic on server and I will test it today.
However, gideros uses luasocket which doesnt support ipv6. New luasocket versions has socket.tcp6() method which supports ipv6 connections. Do we need it in socket class or something?
from noobhub.
I checked LuaSocket documentation. You definitely need latest luasocket lib in Gideros.
Then, in noobhub.lua try to put it like this:
local socket = require( "socket" )
socket = socket.tcp6()
(as per documentation here http://tst2005.github.io/lua-socket/tcp.html)
Haven't tried it myself tho. Other Noobhub user reported that everything just worked when he fed direct ipv6 address to Noobhub client object (but he did change server code to listen on ipv6 interface: server.listen(cfg.port, '::');
)
Let me know if this works.
from noobhub.
Hi,
We are using your code in an App for Mercedes Benz in Germany, it works really well, but we have the Ipv6 iOS issue now.
I am using CoronaSDK, what do I need to change to address the Ipv6 iOS changes?
I just got an App refused by Apple...
Reading the comments above, just need to change the server code to, server.listen(cfg.port, '::');??
Do I need to make the socket = socket.tcp6() change? When I did it give an error on line 85...
Thanks in advance,
Rui Tito
from noobhub.
Hello! Noobhub is ipv6 ready. No need to call tcp6()
. Several folks have their ipv6 apps published with no problems.
Anyways, here, I made a checklist for you to help troubleshoot:
- Make sure CoronaSDK build is Daily Build 2016.2883 or higher
- Make sure you are not trying to connect via old ipv4 address (like 11.22.33.44)
- Make sure your domain name has AAAA record. How to check:
burn@laptop2:~/Documents/NoobHub$ dig google.com AAAA | grep AAAA
...
google.com. 33 IN AAAA 2404:6800:4005:803::200e
- Update to latest Noobhub. I have just made a light modification on server side (yeah, the one you pointed out, I forgot to push it...)
Keep me updated on how it is going, I will be happy to help.
from noobhub.
Hi Igor,
Many thanks for the support, I really appreciated.
I already setup a new server, made the changes, and I will upload to Apple today.
Let us know if you are available for some jobs, Corona related...
Take care,
Rui Tito
FYI I am from Portugal, but living in Brazil, and developing a platform for mobile training...
from noobhub.
Hi Igor,
Thanks again, it got approved...
Rgds
Rui Tito
from noobhub.
Related Issues (20)
- a little suggestion HOT 1
- npm package HOT 3
- Connection Fails on Android Device HOT 3
- lua md5 implementation origin and license ? HOT 2
- Write server-side code for client-server game? HOT 2
- Can't get external connections to work HOT 3
- Noobhub server alternative implementation HOT 2
- Error: targetStart out of bounds HOT 4
- Unity3D HOT 2
- JS code HOT 5
- What about TLS/SSL HOT 3
- Problem running NoobHub on AWS HOT 4
- Buffer() deprecated in Node 10 HOT 8
- Error: read ETIMEDOUT HOT 1
- C#/Unity client HOT 2
- Android disconnecting and freezing HOT 3
- License HOT 1
- noobhub.lua:21: attempt to index field 'sock' (a nil value) HOT 1
- TODO: rewrite connection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from noobhub.