Haxe-Neko Chat, networking and setting up the server

76 views
Skip to first unread message

Minecre

unread,
Feb 6, 2015, 12:18:49 PM2/6/15
to haxe...@googlegroups.com
Maybe it's a stupid question (my knowledge in networking is highly limited), but I've been looking several months for the answer and found nothing.
I don't remember where, nor who published it, but this chat example came to my hands

Basically you run a instance of it to create the server of the chat, and then others to be clients. Originally it was limited to one computer (by setting the IP to "localhost"/"127.0.0.1") and later on i modified it to set up a server in a pc and clients in others within my internal network by setting the IP to "192.168.1.X".
It also lets me run several servers in the same computer using different ports so i've been wondering, whats the next step? How do i set up the server in my house and access as client from, say, another city? Using my external IP leads to my router, but i don't know to make it go further or if it's done in a different way

Greetings!
Client.hx
Main.hx
RawEdit.hx
Server.hx

Axel Huizinga

unread,
Feb 6, 2015, 12:46:41 PM2/6/15
to haxe...@googlegroups.com
You need to setup port forwarding to your servers ip at the router.
Greetings!
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages