Giter Site home page Giter Site logo

Comments (8)

Overtorment avatar Overtorment commented on July 17, 2024

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.

Overtorment avatar Overtorment commented on July 17, 2024

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.

mertkurum avatar mertkurum commented on July 17, 2024

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.

Overtorment avatar Overtorment commented on July 17, 2024

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.

gnotus avatar gnotus commented on July 17, 2024

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.

Overtorment avatar Overtorment commented on July 17, 2024

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.

gnotus avatar gnotus commented on July 17, 2024

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.

gnotus avatar gnotus commented on July 17, 2024

Hi Igor,
Thanks again, it got approved...
Rgds
Rui Tito

from noobhub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.