Your Server

How do I set up a static ip?

I wanted to make a dedicated server for gmod, so i did. I got a couple of addons working, and I could connect to the server. However, no one else could. I figured out that I needed to first set up a static ip, and then forward some ports. So I started the command prompt and typed ipconfig/all and pressed enter. Here are the important things: IPv4 Adress: 192.168.1.47<Preferred> Subnet Mask: 255.255.255.0 Default Gateway: 192.168.1.1 Ok now here's the problem part. For DNS servers this is what it shows: 192.168.1.1 192.168.1.1 Yep. It has the same one twice. So when I went to control panel, manage network connections, properties, Internet Protocol IPv4, properties, and typed in the numbers i found, my internet no longer worked so i went back to the automatic settings. I'm guessing the problem is with the DNS server addresses. Help would be much appreciated.

Public Comments

  1. call you ISP and ask for one, you don't have to set anything up
  2. You only have control over the IPs on your network. Your ISP controls your external IP!
  3. First you'll need to take down some IP information so if you don't have something to write with open up notepad. Click on the Start Menu then select Run. A window like this one should appear. In this window type "command" and press enter. Step 2 IP InformationA black DOS screen should appear. Type "ipconfig /all" in the DOS prompt and press enter. All your IP information should generate. This is a helpful command to know if you ever have to find your IP address or other info about your internet connection. Be sure to write down your IP Address, Subnet Mask, Default Gateway, and both DNS servers. After your are done type "exit" and press enter to exit the DOS window. (Note: If both DNS server addresses are the same then they are just proxy numbers used by your router and you will have to either log onto your router status page or call your ISP and ask for your DNS or Name server addresses.) Step 3 Network ConnectionsNow click "Start" and open up the "Control Panel." Select "Network Connections" and right click on the connection you use and select "Properties." Step 4 Internet PropertiesA window like this one should appear. Select "Internet Protocol (TCP/IP)" and click on Properties. Step 5 TCP/IP Properties beforeA window like the one pictured will pop up. "Obtain an IP address automatically," should be selected. If it isn't then congratulations, you have a static IP already. Select "Use the following IP address." Enter the following: IP Address -- Type in the IP address you wrote down but change the last digit to a number between 1 and 255. For example, if your IP address is "192.168.1.1" you would enter "192.168.1.11" or "192.168.1.101" Subnet Mask / Default Gateway -- Enter these exactly as you copied them down. Step 6 TCP/IP Properties afterNext click "Use the following DNS server addresses" and add the DNS servers you copied down or found in your router settings. After you've entered all the information your screen should look something like the picture to the left. Step 7Now make sure you can connect to the internet and congratulations! You now have a static IP address! If you can't connect to the internet the most common problem is the DNS servers. Make sure your DNS servers are correct. If you can't find your router settings just call your ISP and they should be able to give you your DNS or Name Servers. For More Information visit
Powered by Yahoo! Answers