ULX

Author Topic: Quick Question: Admin by IP Address?  (Read 9584 times)

0 Members and 1 Guest are viewing this topic.

Offline Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Quick Question: Admin by IP Address?
« on: February 09, 2010, 05:50:16 PM »
Occasionally my steam id breaks, and that means no admin, and my id is 0:0000000 or whatever... full of 0's.


What I'm asking is: Is there a way to make myself admin by my ip so that i can still be admin if my steam id breaks? In my users.txt i think i need to change type to something but idk what. Can anyone help?
« Last Edit: February 09, 2010, 06:46:33 PM by Stephen304 »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: Quick Question: Admin by IP Address?
« Reply #1 on: February 09, 2010, 07:14:52 PM »
You can do this in non-SVN version, but SVN no longer supports this.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Quick Question: Admin by IP Address?
« Reply #2 on: February 09, 2010, 07:23:17 PM »
You can do this in non-SVN version, but SVN no longer supports this.

Additionally - This was a design decision.
As part of a re-design of the UCL (ULib's user control list) in order to simplify it, IP address was one of the items removed.

You're the first I've personally heard using it.
Besides the fact that not many used it (and probably even fewer knew it existed/could be done), most 'personal' IPs in this internet connected world are dynamic. That too assisted in our decision.

As for your SteamID dissapearing... that in itself is odd, and may be due to server connectivity issues with Steam secure servers.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Re: Quick Question: Admin by IP Address?
« Reply #3 on: February 10, 2010, 12:40:50 PM »
Well I was going to make my local ip address admin to solve the dynamic problem, besides the fact that my isp lets you have the same ip for a very long time, been 5 years of same ip soo far.

I don't know why my steam id breaks, usually quitting and restarting steam fixes it but right now it won't fix itself.

Also, what should i put in the users txt to admin myself by my local ip?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Quick Question: Admin by IP Address?
« Reply #4 on: February 10, 2010, 03:50:47 PM »
to admin myself by my local ip?

If not using ULX 3.4, you can't... nothing.
Even Gmod itself without ULX looks for either
1) you running a listen server = you being superadmin/host or
2) Your steamid.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Re: Quick Question: Admin by IP Address?
« Reply #5 on: February 10, 2010, 04:04:15 PM »
You can do this in non-SVN version, but SVN no longer supports this.

I'm confused  ???
I have non svn right now, i though Megiddo said this means i can do admin by ip... My steam id is still broken and i have to use rcon for everything.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Quick Question: Admin by IP Address?
« Reply #6 on: February 10, 2010, 06:44:47 PM »
Oh, thought you'd done it before.
Do a quick first step. Start a local game, before joining your server or any other action, just after starting your game and getting to your menu... go to console and type in 'condump'
That will create a file in your <installed dir>/garrysmod folder and show you the name.
Grab that file, use 'additional options' link under your reply post... it opens up to a way to attach a file.
Attach it here please.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Re: Quick Question: Admin by IP Address?
« Reply #7 on: February 11, 2010, 03:58:46 AM »
Ok here it is

Offline vader0146

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 9
Re: Quick Question: Admin by IP Address?
« Reply #8 on: February 11, 2010, 10:04:02 AM »
Why do you even need ULX on a listen server? -___-

Offline Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Re: Quick Question: Admin by IP Address?
« Reply #9 on: February 11, 2010, 03:26:35 PM »
Beats me, i use a dedicated server because its just better :D

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Quick Question: Admin by IP Address?
« Reply #10 on: February 11, 2010, 03:31:59 PM »
Stephen... we might be confused with a bit of the terminology here.
You say you use Gmod/ULX on a dedicated server, but, the console file you showed us shows a listen server starting up.
You can even see the [L] out beside the server name.
Listen = Started by going into Gmod the game and clicking 'Create Mulitplayer'
Dedicated = Started by running HLDSUpdateTool to install a console server, then running the file "srcds.exe" (Source Dedicated Server)

Which one do you use?
In terms of ULX, they are totally different... in a Listen server, you the person running the game are automaticallly a superadmin.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Re: Quick Question: Admin by IP Address?
« Reply #11 on: February 11, 2010, 03:39:07 PM »
What? I thought you told me to start up gmod and create a local game and do the condump in a listen server? Was i supposed to do that in my dedicated server??? Why didn't you tell me???
...just after starting your game and getting to your menu...
Lets see that again:
...menu...
Since when do dedicated servers have a menu?
« Last Edit: February 11, 2010, 03:41:08 PM by Stephen304 »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Quick Question: Admin by IP Address?
« Reply #12 on: February 11, 2010, 04:02:11 PM »
I got the info I needed, however, when I said menu, I meant the one that has Single Player, Options, Mulitplayer, Create Multiplayer, and a few other options (addons, mute, etc)

Ok, in another post where you included some logs, I saw you post an IP address that, from my experience, Windows only uses when it can't find one from a DHCP server.
Now, that being said, I'm not experienced enough to know if it should or should n0t be used on a Home LAN.

Are you on a home LAN, behind a hardware router?
Is you server behind the same router? Or do you have it on a public host somewhere? (I could probably find that info in a post somewhere too, but, meh)
If behind your home router, what IP address first two octets does it have (1.2.x.x) those two.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Re: Quick Question: Admin by IP Address?
« Reply #13 on: February 11, 2010, 06:55:57 PM »
... when I said menu, I meant the one that has Single Player, Options, Mulitplayer, Create Multiplayer, and a few other options (addons, mute, etc)...
Wouldn't that only be listen server?

Not exactly sure what your asking, but my public ip is 75.108.143.140 and my server is locally at 192.168.1.2, which is the computer I play gmod from also. So basically 1 computer behind 1 router and 1 modem.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Quick Question: Admin by IP Address?
« Reply #14 on: February 11, 2010, 07:21:24 PM »
my server is locally at 192.168.1.2, which is the computer I play gmod from also. So basically 1 computer behind 1 router and 1 modem.

Hmm. Might explain why 'steam' is losing your Steam address.
Your server saw you connecting from another address..which normally isn't a valid address.
Quote from: You from another post
[09:44:07]Client "Steven" connected (169.254.123.210:27006).
[09:44:52]Client "Steven" spawned in server (169.254.123.210:27006)<STEAM_0:1:223#####>.

That 169.254 isn't valid... that IP is 'made up' by Windows when it can't get an ip address of it's own from a router or ISP.
Your server logs should show you also connecting from 192.168.1.2

When you lose your steam id, you should check your server console 'status' command and see what your IP address is connected from.
Have you had surfing problems when/during the same time you lose your steamid?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming