Jump to content

Oddly

Ascending Contributor
  • Posts

    484
  • Joined

  • Last visited

  • Days Won

    36

Everything posted by Oddly

  1. Secret Agent Crest Toothpaste.

    1. Phenomenal
    2. Oddly

      Oddly

      sneaking up on those cavaties yo.

  2. Follow me for free candy.

    1. hra

      hra

      Wheres my candy?

    2. Oddly

      Oddly

      It's in the van.

  3. So I couldn't help but notice the lack of content in the tutorial section, thought i'd make some contributions, so this is an in depth explination of what port forwarding is, and how to use it, since it seems to be a very common issue to beginners. What is port forwarding? By definition, port forwarding is the application of computer networking which redirect network requests from one address and port number to another. What this means; When a packet of data is sent from one machine to another, a network request is made to a Wide Area Network (WAN) Address from a machine connected to the internet. When the network request hits a router, a set of rules tells the router which machine and port number on the Local Area Network (LAN) the network request should be forwarded to. The definition of these rules allow certain applications on your Local Network to be exposed to the internet. First let's go over what an IP address is and why you will be working with multiple IP addresses while port forwarding. You can imagine an IP address similar to your home mailing address or a phone number. An IP Address is simply an identifier for network packets to know which machine to deliver information to. You will generally work with two ip addresses when portforwarding. One ip address is your WAN address, the ip address exposed to the internet. This ip address defines your machine on the "global internet" (as one way to put it). The other address is the LAN address of the machine you wish to expose to a public network. The ip address defines your computer on your local network. I could have 2 machines on my network. One machine is a personal computer, the other is a server which hosts my game server application. My personal machine may have an address of: 10.0.0.100 while my server may have the address of 10.0.0.101, no two machines may have the same address on a single network. A portforwading rule tells which machine the router should forward packets of a specific port to. So, i want to tell me router to direct traffic to 10.0.0.101 since that is the machine hosting the server in which i wish to expose to a WAN. Do note that there are 2 versions of IpAddress currently in use. There is IPv4 which will have a format such as X.X.XX.XXX and there's an IPv6 address which may have a series of numbers and letters (hexidecimal values). We have IPv6 because we ran out of IPv4 addresses. you may or may not need to work with IPv6 address while portforwarding. Your router may or may not support it. What is a port? A port is simply a 16 bit, unsigned integer (to define this for beginners; this means a port is a number between 0 and 65535), which acts as an identifier for applications running on a network. Two objects of the same port may not be running on the same machine at the same time, as this causes network delivery conflictions, meaning that the machine's operating system does not know which application to forward traffic to. That is quite literally all a port is. A number that is a unique identifier of applications on a network. Now actually what port forwarding looks like; Basically, I want to expose port number 4000 to the internet. The application i want to expose is on the ip address 10.0.0.101 and is running on port 2000. (I'm giving two different port number to give clearer definition of exactly what happens when data packets are received on the network, you do not have to use two different port numbers to port forward.) In order to expose my application (running on 10.0.0.101:2000) to the public network by port 4000, I must create a port forwarding rule to instruct my router how to forward data. I do this by going to my router's port forwarding control panel. Example of what that looks like: I can access this control panel by finding my routers gateway address. I can do this by opening up my control panel (windows: Start->Run->cmd.exe) or my terminal (linux), and typing the command ipconfig (window), or ifconfig(linux). Network information will be returned on the console and you want to find the ipaddress for "gateway". I can then take this ipaddress, open up my web browser, and paste it into the address bar. Navigating to this address will bring your to your router's administrator login panel. After logging in (you gotta find your username and password somehow), i will need to find the section of my adminstrator settings for "Port Forwarding" or "Port Range Forwarding". The name of the application does not matter, it is only an identifier for you to know what application that rule is exposing. You could put "Exposive kittens in a blender" if you wanted and it will still work fine. The "public port" field defines what port number you are exposing to the public (which port others will use to connect to your server). The "private port" section determines the port which the application is running on your local network. So in my example problem of which ports i want to expose, port 4000 is my public port. People will connect to my server through port 4000. Port 2000 is my private port, that is the port my server is running on. The "IP Address" field is the ip address of the local machine address running the application you wish to expost. As stated above my server is running on my LAN address 10.0.0.101. So 10.0.0.101 willl be the value of "Ip Address". Protocols (UDP/TCP) A network protocol determines how a socket handles information. The 2 primary protocols used are User Data Protocol (UDP) and Transmission Control Protocol (TCP). Understanding the difference between these protocls and what they do is a more advanced topic which will not be discussed here. You do, however, need to know which protocol your application is using. I believe intersect uses UDP, but i cannot 100% confirm that, hopefully someone else can in the comments. In most cases you are okay to use Protocol/Traffic Type: "Both". Which states that the receiving port accepts both UDP and TCP data packets. Connecting to an application after port forwarding: In order to connect to your application through the Wide Area Network, you will need your WAN address, which you can get by going to google and typing in "What is My Ip Address". An IPv6 Address may or may not be returned, if it is, and your application does not support IPv6, your router should also have an IPv4 address, finding a site that will display this information for you is not hard. This is one that i've found: http://whatismyipaddress.com/ After grabbing your WAN Address, you will need to configure your client to use that address. This may involve you opening up a configuration file and updating the address given. The port in this config will also need to be adjusted to that of which is the port you're exposing publically (what you filled out in the "public port" field). Putting your LAN address in will only access the server through your localized network. There's no place like 127.0.0.1! So i wanted to bring up localhost in this subject to explain a bit about local endpoints. Most networks controllers (practically all) have a networking rule built in that tells a machine to reference itself without hitting an external network by using a specified ip address. We refer to this address as localhost, and in most cases (practically all) this address is 127.0.0.1. In most machines and a lot of applications, you may literally use the string "localhost" as a shorthand to this address. I may open my web browser and type in "localhost" and my machines Domain name resolver, auto resolves this to the address 127.0.0.1 and load up whatever web application is running on my local machine. Again, all this address does is reference the local machine without hitting an external network (LAN or WAN). No other machine on your network may access another machine if you use the ip address "127.0.0.1". That's about all the information i have to give on port forwarding, i hope this post helps reduce the number of questions about port forwarding. If you have questions or are confused about a specific subject in this post, feel free to drop a question in a reply. Wide Area Network; The best way to describe this in my opinion; A series of Local Area Networks linked together. This is what we know as the internet. Local Area Network; A network of computers locally linked together by some sort of switch. These machines are exposed only to other machines on the same switch. For those looking for a simple guide to the process of portforwarding, I recommend seeing Miharukun's guide:
  4. Bananas are hardly that slippery, but watch your step anyway.

  5. Happy white people murder the natives after they feed our hungry day.

    1. George

      George

      Thanks bud, you too. 

    2. Phenomenal

      Phenomenal

      Ayyy I don't have to count this as my blame :grog:

  6. I'll take a listen to it later
  7. It's weird as fuck, but addicting and halarious. https://open.spotify.com/show/0s6Wc5qf8SIvCtKZNC6N7s
  8. I'm dying in a vat in the garage.

    1. Sethis

      Sethis

      Funnily enough, I watched this same episode like, three days ago ? :lol:

  9. The people who could buy and sell you share a joke that they'd never tell you.

  10. Nice tutorial! Great use of a viking sprite too, A-hinga-dinga-durgen!
  11. @panda Has a crippling phobia of giant blinking eyeballs. I am making this

    status longer than necessary so he has to go to my profile to read the whole thing in which instead he will see a giant blinking eyeball

    f1211847f2b99d4d756abea35cc052c5.gif

    1. Oddly

      Oddly

      @panda not replying pretending he never saw this post, but i see he visited my page.

  12. OOOOHhhhhh Gibier laying down the law, yo!
  13. This was way under appreciated.
  14. I made a thing (image)

    3499d06242ad32d12e6fb2b4d71444e7.png

  15. You don't gotta be a genius but it help to.

  16. no problem, also i wanted to make a point about pixel graphics, it's typically a rule of thumb to not use pitch black #000000 or full white #ffffff in tilesets. I don't know if this applies to modern design, this was just something i remember from way back in the day. So if your tilesets use black, usually you would want to go with almost all the way black: #0c0c0c, #111111, Just a suggestion that will also stop your tilesheets from blending with the background. The rule has to do with alpha colors, because way back when, transparency wasn't a thing, you had to tell your graphics system to not render a specific color, we called this color the "alpha tone" or "alpha color" which would usually be represented by Full White, Pitch Black or a magenta color.
  17. I've seen a lot of editors use an image of a duotone light grey checkerboard in the background to represent transparency. Photoshop does this and it seems to be Ideal kinda like this: Edit: Not really an answer to your question, just an implementation suggestion when you add in a suggesstion ticket. Edit: Some editors also use a dark grey version of this same image, but I think the lighter one tends to blend best.
  18. \  |  /

    < O > I See Everything.

    1. Ranqe

      Ranqe

      You're sick in the head.

    2. Cheshire
    3. Oddly

      Oddly

      :116_eye:@Joyce gets it

      @Rob How strange of you to say that.

  19. I appreciate your existence.
  20. http://www.ascensiongamedev.com/resources/filehost/c746ebc0e855fe5fbf5e1ec9de0a1925.mp4 So i made the logo screen for my game
  21. Shoutbox is low key a time machine, don't be fooled.

  22. Hey! This guy's a BIG, STINKIN' PHONY!

  23. Superman 64, umm hello?
  24. (image) Got textures working...  :')

    7a261b421beeafbb125e8eb926fb86ca.png

    1. Sethis

      Sethis

      Trumpxtures !

  25. This place is weird.

    1. Sethis

      Sethis

      That's what she said.

    2. Ranqe

      Ranqe

      Your sick in the head yo. SICK IN THE HEAD!

    3. Oddly

      Oddly

      ya man, i'm Sick af :96_ok_hand::77_alien::91_thumbsup:

×
×
  • Create New...