thank you, so i need to connect to my external ip then port forward to my pc, ok thanks
looks like i need to do some research on some port forwarding, basically i want to set a server up separate to the client.
there both built in one, sorry i havent been on the forums for about six years.
i will try and attach the demo so you get an idea of what im working with
this is the create event, where the ip and port are selected.
/// @description Initialization and Connect
var host, port, joinspace, recvinstance, version, hashlen, key;
host = "***.**.*.***" //"127.0.0.1" // ip here external one
port = 12567 //port here
joinspace = 1
recvinstance = id
version = "The Particles"
hashlen = 10
key = "MyKey"
buffer_seek(NsSendBuffer, buffer_seek_start, 0) //Server can read this buffer in the TypeClientConnected by NsRecvBuffer
tcp_handle = ns_create_client_async(host, port, joinspace, recvinstance, version, hashlen, key)
if(!tcp_handle)
{
show_message("Server connection failed.")
game_end()
exit
}
ping = 0 //Get ping in the alarm[1]
alarm[0] = room_speed //Server condition check
application_surface_enable(false)
draw_set_colour(c_white)
thats the code, inside the example it is the closest i have found to one that works, i know its like cheating but i would like to make a working example to learn from, just the basic port forwarding to a server at an ip address?
there is no tutorials, i cant find any besides this and there is no youtube videos explaining the whole process of networking, making it very hard, and the docs well you only get 10% of what you can do so its not much of a help. the tutorial is downloadable from the marketplace for free, its called "networking with space".
this image is a diagram of my internet, i have a d-link separating 2 areas, the d-link changes the ip address a lot, so area 2 i cant seem get an ip address?