TCP/IP questions

Blitz3D Forums/Blitz3D Beginners Area/TCP/IP questions

LedgerARC(Posted 2008) [#1]
I have this game that works on a simple TCP/IP engine, this works fine on computers within the same network. What I'm wondering is how you declare the gateway IP before the actual computers IP. I know that you have to do so because the router has some sort of protection so that only things from the internet can get it's IP and not the IP of all the computers connected to it.

the code that will work with computers in the same network is:

Global ip$="111.111.1.11"

but I want people to access the server from their computer that might be far away, but still connected to the internet.

I've tried things like global ip$="111.111.1.111: 111.111.1.11" to try to get through the router, the first set being the routers IP and the other set after the ":" is the computers IP.

I don't even know if this is possible, or if you have to make the server connected to the internet directly.

Thanks for any help
Andrew


LedgerARC(Posted 2008) [#2]
ok, I found out that it actually is possable, but I still don't know how to do it :( please help


Ole JR(Posted 2008) [#3]
These kind of things are done on the router side using portforwarding..

See http://portforward.com/ for how it's done on different routers..


LedgerARC(Posted 2008) [#4]
oh! awsome! this works great! thanks Ole JR!