Changing the IP of my server

Post Reply
morbas
Posts: 4
Joined: Mon Jul 30, 2012 2:11 pm

Changing the IP of my server

Post by morbas » Wed Aug 08, 2012 5:30 pm

I made a server using the 127.0.0.1 settings, but now I want to change my server settings so others may log on, I ran a query on navicat to change my IP address, but it still isn't allowing people to connect that way, I can still get on with the client on the host machine, but my other machine is returning an error stating there is no server at that address.

Any thoughts?

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: Changing the IP of my server

Post by whasf » Wed Aug 08, 2012 5:37 pm

Did you restart the servers after you updated the database?
-- Whasf

morbas
Posts: 4
Joined: Mon Jul 30, 2012 2:11 pm

Re: Changing the IP of my server

Post by morbas » Wed Aug 08, 2012 5:46 pm

I closed the server clients and restarted them, but to no avail. I ran the query, do I need to change server config?

PrBlahBlahtson
Developer
Posts: 539
Joined: Sun Jul 22, 2012 12:17 am

Re: Changing the IP of my server

Post by PrBlahBlahtson » Wed Aug 08, 2012 8:13 pm

Take it one step at a time.

What IP address did you set as your zoneip? It should be the same IP address you get from whatismyip.com. If it starts with 192, 127, or 10, odds are you're using the wrong one.

Can you connect to the server yourself? This means that the server is listening, at least.

Did you open ports in your router and/or the computer's firewall that the server is running on? That would be important. If you don't open ports, it means computers behind the router can make calls out, but no one can call in to the computers behind the router (like your server.)

There shouldn't really be any IP addresses in the .CONF files that you have to change. Leaving the SQL server configured as 127.0.0.1 is fine.

morbas
Posts: 4
Joined: Mon Jul 30, 2012 2:11 pm

Re: Changing the IP of my server

Post by morbas » Thu Aug 09, 2012 12:27 pm

my zoneip is the same as the whatsmyip site, I am able to connect to my own, and I haven't opened the ports yet (Haven't checked which ones yet.) but I am not sure if that should matter since both machines are on my home network :/ I will try opening them though.

PrBlahBlahtson
Developer
Posts: 539
Joined: Sun Jul 22, 2012 12:17 am

Re: Changing the IP of my server

Post by PrBlahBlahtson » Thu Aug 09, 2012 12:58 pm

If the computer is firewalled, it would matter. But if they're both behind the same router, that shouldn't be an issue. If you're only running it behind the router, and not allowing connections from outside, then that's the one time that using your internal IP address for the zoneip will work better, actually. Sorry I didn't check that beforehand.

If you're unsure how to check that, then use Start -> Run -> cmd, and then in the command window type ipconfig and press enter. That should straighten it out.

morbas
Posts: 4
Joined: Mon Jul 30, 2012 2:11 pm

Re: Changing the IP of my server

Post by morbas » Thu Aug 09, 2012 1:21 pm

So, I forwarded the ports and i can connect, but my search server is not working now, I don't know which port to forward for it.

PrBlahBlahtson
Developer
Posts: 539
Joined: Sun Jul 22, 2012 12:17 am

Re: Changing the IP of my server

Post by PrBlahBlahtson » Thu Aug 09, 2012 4:51 pm

If it doesn't work for anyone, you might try checking the search_server.conf to make sure that the username/password is correct. mysql_host as 127.0.0.1 is perfectly safe, and the computer should have no issue connecting to itself on 3306, so that doesn't need to be forwarded.

Failing that, netstat -ab says that DSSearch-server is listening on port 54002 by default. The wiki doesn't mention that, so you may need to add that forward first.

Lyrium
Posts: 13
Joined: Tue Aug 28, 2012 5:34 pm

Re: Changing the IP of my server

Post by Lyrium » Fri Sep 21, 2012 12:15 pm

I have a similar problem to the one stated in the original post. I followed the wiki guide and opened up the ports specified, but aside from my host machine the server cannot be found. The servip in the launcher on the outside computer was changed to the ip address attained from whatismyip.com on the host machine. What should I try next?

Post Reply