Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: Stephen304 on February 09, 2010, 05:50:16 PM

Title: Quick Question: Admin by IP Address?
Post by: Stephen304 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?
Title: Re: Quick Question: Admin by IP Address?
Post by: Megiddo on February 09, 2010, 07:14:52 PM
You can do this in non-SVN version, but SVN no longer supports this.
Title: Re: Quick Question: Admin by IP Address?
Post by: JamminR 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.
Title: Re: Quick Question: Admin by IP Address?
Post by: Stephen304 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?
Title: Re: Quick Question: Admin by IP Address?
Post by: JamminR 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.
Title: Re: Quick Question: Admin by IP Address?
Post by: Stephen304 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.
Title: Re: Quick Question: Admin by IP Address?
Post by: JamminR 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.
Title: Re: Quick Question: Admin by IP Address?
Post by: Stephen304 on February 11, 2010, 03:58:46 AM
Ok here it is
Title: Re: Quick Question: Admin by IP Address?
Post by: vader0146 on February 11, 2010, 10:04:02 AM
Why do you even need ULX on a listen server? -___-
Title: Re: Quick Question: Admin by IP Address?
Post by: Stephen304 on February 11, 2010, 03:26:35 PM
Beats me, i use a dedicated server because its just better :D
Title: Re: Quick Question: Admin by IP Address?
Post by: JamminR 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.
Title: Re: Quick Question: Admin by IP Address?
Post by: Stephen304 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?
Title: Re: Quick Question: Admin by IP Address?
Post by: JamminR 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.
Title: Re: Quick Question: Admin by IP Address?
Post by: Stephen304 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.
Title: Re: Quick Question: Admin by IP Address?
Post by: JamminR 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?
Title: Re: Quick Question: Admin by IP Address?
Post by: Stephen304 on February 11, 2010, 08:02:21 PM
No, no other problems, just no steam id. So i guess what you said means i loose my own local ip too?
Title: Re: Quick Question: Admin by IP Address?
Post by: JamminR on February 11, 2010, 08:19:56 PM
It looks like it, yes. Odd though, considering your server runs on the right IP.
Your Gmod client may be seeing another connection... does your computer have more than one network card or connection?
Sometimes Windows sees firewire, VPN adapters, other software/virtual drivers as a connection and can assign it a 169.254.x.x address.
If you go to a command prompt and do a "ipconfig /all", your adapters (with IP) will be shown.
Title: Re: Quick Question: Admin by IP Address?
Post by: Stephen304 on February 12, 2010, 04:00:22 AM
Heres what i got:
Code: [Select]
C:\Users\Stephen>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : LeetPC
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Bluetooth Network Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
   Physical Address. . . . . . . . . : 00-17-F2-BB-F0-2D
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wireless Network Connection 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Virtual WiFi Miniport Adapter
   Physical Address. . . . . . . . . : 00-19-E3-10-88-D8
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wireless Network Connection:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Broadcom 802.11n Network Adapter
   Physical Address. . . . . . . . . : 00-19-E3-10-88-D8
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::3ca1:b552:f30d:c074%12(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.2(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Wednesday, February 10, 2010 3:47:03 PM
   Lease Expires . . . . . . . . . . : Saturday, February 13, 2010 4:37:16 AM
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 218110435
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-BB-0E-D6-00-17-F2-D1-F0-7A

   DNS Servers . . . . . . . . . . . : 192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Marvell Yukon 88E8053 PCI-E Gigabit Ether
net Controller
   Physical Address. . . . . . . . . : 00-17-F2-D1-F0-7A
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{3C375737-95D3-49E8-86D9-FA0F32309F13}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Teredo Tunneling Pseudo-Interface:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:0:4137:9e74:107f:312f:b493:7073(Pref
erred)
   Link-local IPv6 Address . . . . . : fe80::107f:312f:b493:7073%13(Preferred)
   Default Gateway . . . . . . . . . : ::
   NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter isatap.{D980F224-ECF8-4EA3-A7A6-C7AC83696FF7}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{E4CBCE4C-C932-4E3F-8CB8-B6CF5EE9871B}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{68177EBA-5421-41DC-B04B-4F8FC25C7569}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #5
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Looks like alot of them to me.
Title: Re: Quick Question: Admin by IP Address?
Post by: JamminR on February 12, 2010, 03:20:19 PM
That is quite a bit, much of it dealing with IPv6, which 99.9% of the internet, and definitely 'home' based equipment, is not using right now.
You may wish to google how to disable IPv6 in Vista/Windows 7. (Teredo / tunnel adapters are IPv6 to v4 converters)

Also... the fact you seem to run a server through a wireless connection may be causing connection issues to Steam.
Though good for surfing/burst transmission access to the web, wireless usually isn't good for streaming based applications, even when sitting right next to the router.
If you have a way to go ethernet/wired... I strongly recommend doing so.
I bet your players would notice the difference too.

Do you use Bluetooth internet access devices? Not mice/keyboards, but Bluetooth devices designed to access the internet.
If not, you may wish to research how to disable those.

The less connections your applications, including Steam, have to worry/scan through while starting can help issues like the one you're having with losing Steam connectivity.
As for setting an IP in ULX, I'd work on not losing the SteamID/connectivity problems first... once that's corrected, I bet ULX follows.
Title: Re: Quick Question: Admin by IP Address?
Post by: Stephen304 on February 12, 2010, 05:01:35 PM
Yeahhh... No way to direct connect, router is 1 floor down. Only place to hook up. No chance of my parents letting me move the computer closer to my room.

I'll see what i can do about those other connections.
Title: Re: Quick Question: Admin by IP Address?
Post by: vader0146 on February 13, 2010, 08:10:45 AM
get your own computer lol
Title: Re: Quick Question: Admin by IP Address?
Post by: JamminR on February 13, 2010, 09:35:25 AM
He can't yet. They (seem like) good parents and wish to monitor his computer activities.
Best way is to keep it in a monitored place.

Either way, wireless is shady connection at best.
Know you can't help it, but server performance is affected, and connection to Steam, as you can tell, is too.
Title: Re: Quick Question: Admin by IP Address?
Post by: vader0146 on February 13, 2010, 02:17:54 PM
He can't yet. They (seem like) good parents and wish to monitor his computer activities.
Best way is to keep it in a monitored place.

Either way, wireless is shady connection at best.
Know you can't help it, but server performance is affected, and connection to Steam, as you can tell, is too.

OP is 12
Title: Re: Quick Question: Admin by IP Address?
Post by: JamminR on February 13, 2010, 03:14:34 PM
Age doesn't matter regarding this topic.
Discussion here has been intelligible and questions reasonably versed.
Leave pointless remarks like that out of it.

For future reference, the answer to the original question post is, for ULib 2.3 and less (non svn), in users.txt, id would be the IP x.x.x.x of the player/person connecting, and type would be "ip"
Again though, the reason your steamid isn't working goes beyond ULX, and most likely if your Steamid isn't working, your IP would be invalid/not matching either.
From ucl.lua of ULib 2.3
Code: [Select]
--[[
Section: Format

This section will tell you how to format your strings/files for UCLs.

Format of admin account in users.txt--
"<account_name>"
{
"id" "<name|ip|steamid|clantag>"
"type" "<name|ip|steamid|clantag>"
"pass" "<password>"
"pass_req" "<0|1>"
"groups"
{
"superadmin"
"immunity"
}
"allow"
{
"ulx kick"
"ulx ban"
}
"deny"
{
"ulx cexec"
}
}


Title: Re: Quick Question: Admin by IP Address?
Post by: Stephen304 on February 13, 2010, 03:56:59 PM
OP is 12
12
12
12
Quote
RICK JAMES!
Ok, lol sry i had to do that.
Where did you get that from??? 0_o
You are some years off.

Anyways, thanks for that info, next time it breaks maybe it will work, because I'm pretty sure my ip stays correct.
Title: Re: Quick Question: Admin by IP Address?
Post by: jay209015 on February 17, 2010, 11:16:52 AM
Wish I had read this earlier. When running a dedicated server on the same machine that you plan on playing the game from, you have to setup your ports for your server and the game to be different from each other otherwise you will lose your steam id. This is more common when using windows vista/7. Think the command for the command line was +hostport and +port and +clientport you have to change them all.
Title: Re: Quick Question: Admin by IP Address?
Post by: JamminR on February 17, 2010, 03:38:34 PM
Odd. Though it might be because I'm using XP, I've never had a port conflict. If I start my dev ded server, it will by default grab an open port. If I start steam/Gmod before or after, it uses a different port, usually sequential, than what the server is.

Ive never lost my steamid, though it's been a while since I've run a ded server and gmod for more than an hour or two at a time.
Title: Re: Quick Question: Admin by IP Address?
Post by: jay209015 on February 17, 2010, 08:00:41 PM
It's happened to me many times. I hate windows vista+ for this reason, but oh well few more configs won't hurt.
Title: Re: Quick Question: Admin by IP Address?
Post by: JamminR on February 17, 2010, 08:10:37 PM
https://support.steampowered.com/kb_article.php?ref=8571-GLVN-8711
I've had those ports opened on my linux firewall for ages. Even though it says Dedicated = 27015 TCP, I've got the whole TCP range from the paragraph above it (27014 to 27040)
 Either that's helped me not lose my steamid, or Gmod updates over past year or two (since I last ran long uptime server) have broken it, or, as perhaps in both your and Stephen's case, Vista has so many adapters, Steam gets confused and maps same port on a different adapter that's already in use on another. (or, worse, combo's of all)
Though you connect directly to your server, the server and steam client both connect to outside servers, even if you have "-nomaster" set in your command line. (fyi if you didn't know, -nomaster tells server not to advertise to servers list (ie, allow people to see you advertised))
Title: Re: Quick Question: Admin by IP Address?
Post by: Megiddo on February 22, 2010, 10:31:40 AM
Actually you can add by IP or even unique id in ULib/ULX svn. I forgot I still made that possible, sorry. Just put an IP or a unique id in place of where the steamid would normally go.