How To Set Up A Static IP Address

Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)

Moderator: Moderators

Locked
Desiundaground
Posts: 82
Joined: 2004-03-18 15:15

How To Set Up A Static IP Address

Post by Desiundaground » 2004-07-20 16:07

Ok i want to set up a static IP address i have got a rough idea its something to do with the internet connections right, by the way i am using a Zoom 5554 ADSL router.

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-07-20 18:13

I assume you're talking about a static IP address within your LAN, right?

If so, first of all, make a note of the output of "ipconfig /all". You will need it later.

Look at the settings for your network connection in control panel. Look at "Internet Protocol (TCP/IP)". Change the automatic IP address retrieval to manual and enter the information you saved earlier (IP address, DNS servers, etc).

You might want to make changes to your router so that it doesn't try to automatically allocate the static IP you set, to another machine. Example: My machine's static address is 192.168.0.3. I set the DHCP server in my router to start allocating dynamic addresses from 192.168.0.5 onwards.
The world is coming to an end. Please log off.

DC++ Guide | Words

BSOD2600
Forum Moderator
Posts: 503
Joined: 2003-01-27 18:47
Location: USA
Contact:

Post by BSOD2600 » 2004-07-20 20:46

I think he means a statis IP from his ISP; and if so then you'll need to call them up and pay a little extra so they set you with one. Otherwise, as you've experianced you get a new IP each time your modem connects.

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-07-21 04:33

BSOD2600 wrote:I think he means a statis IP from his ISP
Well, the initial post is ambiguous, so I made the best guess based on the poster's history. :)
The world is coming to an end. Please log off.

DC++ Guide | Words

Desiundaground
Posts: 82
Joined: 2004-03-18 15:15

Post by Desiundaground » 2004-07-21 11:37

Yes you are correct i was looking for how to setr up a Static Ip Adrress

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-07-21 12:04

Desiundaground wrote:Yes you are correct i was looking for how to setr up a Static Ip Adrress
You have just reiterated what you said in the original post. You have not clarified anything.
The world is coming to an end. Please log off.

DC++ Guide | Words

Desiundaground
Posts: 82
Joined: 2004-03-18 15:15

Post by Desiundaground » 2004-07-21 12:56

All i want to do is get an static ip address so my ip address don't change at all and so that i don't have the problem of changing it when ever the router sets it 2 another ip address.

Xan1977
Forum Moderator
Posts: 627
Joined: 2003-06-05 20:15

Post by Xan1977 » 2004-07-21 13:03

so that i don't have the problem of changing it when ever the router sets it 2 another ip address.
Read the first reply to this thread, all the information you need was given by TPO in that post.

Follow the instructions carefully, re-read several times if necessary, but don't come back without a specific question :wink:

Desiundaground
Posts: 82
Joined: 2004-03-18 15:15

Post by Desiundaground » 2004-07-21 13:25

ok thanks mate will do, and also something else how do you get the extra commands that you have when you right click on DC++ i have got one already with robocop but dunno how to get it 2 work

Code: Select all

 
-- RightClicker v3.0
--
-- RoboCop 7.X Version <-> Made by Optimus & TiMeTrAVelleR
-- Script only works togheter with RC7.X or Higher
--
-- USE SCRIPT AT YOUR OWN RISK, IT MAY NOT BE COMPATIBLE WITH ALL CLIENTS

-- Editable Settings --

-- 1=on / 0=off
SendTo = {
[0] = 1,   -- Masters
[1] = 1,   -- Operators
[2] = 1,   -- Vips
[3] = 0,   -- Regs
[4] = 1,   -- Moderator
[5] = 1,   -- NetFounder
[-1] = 0,  -- Users
}

sMenu = "RC"

-- End Editable Settings --

assert(dofile("tbl/checklevel.tbl"),"tbl/checklevel.tbl not found")

function OpConnected(user)
	if (SendTo[user.iProfile]==1) then
		GetRightClickComs(user)
		customCMDs(user)
		user:SendData("<Info> Enhanced Right Click Support for [RoboCop] is available!")
	end
end

function NewUserConnected(user)
	if (SendTo[user.iProfile]==1) then
		GetRightClickComs(user)
		customCMDs(user)
		user:SendData("<Info> Enhanced Right Click Support for [RoboCop] is available!")
	end
end

function GetRightClickComs(user) 
	TCopy={}
	for cmd,_ in LevelCheck do
	if LevelCheck[cmd][user.iProfile] == 1 then
	for value,command in RightClick do
	if cmd == value then
	tinsert(TCopy,{value,command})
	end end end end

	sort(TCopy,function(a,b) return (a[1] < b[1]) end)
	for t = 1, getn(TCopy) do
	if TCopy[t] then user:SendData(TCopy[t][2])
	end end TCopy={} collectgarbage() flush()
end

function customCMDs(user)
	--user:SendData("$UserCommand 1 3 zCUSTOM\\Test$<%[mynick]> +test||")	-- test
end

RightClick = {
[10]="$UserCommand 1 3 Kick User$<%[mynick]> !kick %[nick] %[line:Reason]||",	-- kick
[20]="$UserCommand 1 3 Ban User$<%[mynick]> !ban %[nick] %[line:Reason]||",	-- ban
[30]="$UserCommand 1 3 Nameban User$<%[mynick]> !nameban %[nick] %[line:Reason]||",	-- nameban
[40]="$UserCommand 1 3 Timeban User$<%[mynick]> !timeban %[nick] %[line:hr:mn] %[line:Reason]||",	-- timeban
[50]="$UserCommand 1 3 Kill User <nameban/ipban>$<%[mynick]> !kill %[nick] %[file] %[line:Reason]||",	-- kill
[60]="$UserCommand 1 3 Warn User$<%[mynick]> !warn %[nick] %[line:Reason]||",	-- warn
[70]="$UserCommand 1 3 Flood User$<%[mynick]> !flood %[nick] %[line:Nr] %[line:Reason]||",	-- flood
[80]="$UserCommand 1 3 Drop User$<%[mynick]> !drop %[nick]||",	-- drop
[90]="$UserCommand 1 3 Gag User$<%[mynick]> !gag %[nick]||",	-- gag
[100]="$UserCommand 1 3 UnGag User$<%[mynick]> !ungag %[nick]||",	-- ungag
[110]="$UserCommand 1 3 INBUILD\\BanIp User$<%[mynick]> !banip %[line:Ipnumber]||",	-- banip
[120]="$UserCommand 1 3 INBUILD\\Unban User$<%[mynick]> !unban %[nick] %[line:nick/ip]||",	-- unban
[130]="$UserCommand 1 3 INBUILD\\Nickban User$<%[mynick]> !nickban %[nick] %[line:Reason]||",	-- nickban
[140]="$UserCommand 1 3 INBUILD\\GetBanlist$<%[mynick]> !getbanlist||",	-- getbanlist
[150]="$UserCommand 1 3 INBUILD\\Clear Permban$<%[mynick]> !clrpermban||",	-- clrpermban
[160]="$UserCommand 1 3 INBUILD\\Clear Tempban$<%[mynick]> !clrtempban||",	-- clrtempban
[170]="$UserCommand 1 3 INBUILD\\Temp Op$<%[mynick]> !op %[nick]||", 	-- op
[180]="$UserCommand 1 3 INBUILD\\Basic Info User$<%[mynick]> !getinfo %[nick]||",	-- getinfo
[190]="$UserCommand 1 3 INBUILD\\Show Users with that ip$<%[mynick]> !getinfo %[line:Ipnumber]||",	-- ipinfo
[200]="$UserCommand 1 3 INBUILD\\Show Users within that iprange$<%[mynick]> !iprangeinfo %[line:Ipnumber]||",	-- iprangeinfo
[220]="$UserCommand 1 3 SETTING\\Restart Hub$<%[mynick]> !restart||",	-- restart
[230]="$UserCommand 1 3 SETTING\\Restart Scripts$<%[mynick]> !restartscripts||",	-- restartscripts
[240]="$UserCommand 1 3 SETTING\\Hub Config$<%[mynick]> !hconfig||",	-- hconfig
[250]="$UserCommand 1 3 SETTING\\Hub Stats$<%[mynick]> !hstat||",	-- hstat
[260]="$UserCommand 1 3 INFO\\User Info$<%[mynick]> !info %[nick]||",	-- info
[270]="$UserCommand 1 3 OTHER\\Mass Message$<%[mynick]> !mass %[line:Message]||",	-- mass
[280]="$UserCommand 1 3 OTHER\\Send Banner$<%[mynick]> !banner %[line:Advert]||",	-- banner
[290]="$UserCommand 1 3 OTHER\\Send Advertise mesage$<%[mynick]> !sendhubad %[line:main/pm]||",	-- sendhubad
[300]="$UserCommand 1 3 OTHER\\Talk Whitout Nick$<%[mynick]> !talk %[line:Message]||",	-- talk
[310]="$UserCommand 1 3 OTHER\\Online Check User$<%[mynick]> !online %[nick]||",	-- online
[320]="$UserCommand 1 3 OTHER\\Offline Message To User$<%[mynick]> !offline %[line:Nick] %[line:Message]||",	-- offline
[340]="$UserCommand 1 3 OTHER\\Watch a User$<%[mynick]> !watch %[nick]||",	-- watch
[350]="$UserCommand 1 3 OTHER\\Watch Off$<%[mynick]> !watchoff||",	-- watchoff
[360]="$UserCommand 1 3 OTHER\\Show Watchers$<%[mynick]> !getwatch||",	-- getwatch
[370]="$UserCommand 1 3 OTHER\\Set CommandSpy on/off$<%[mynick]> !cmdspy %[line:on/off]||",	-- cmdspy
[380]="$UserCommand 1 3 NORMAL\\Topkickers$<%[mynick]> !topkickers||",	-- topkickers
[390]="$UserCommand 1 3 NORMAL\\TopHubbers Online Time$<%[mynick]> !tophubbers||",	-- tophubbers
[400]="$UserCommand 1 3 SETTING\\Set Script Minslots$<%[mynick]> !sminslots %[line:user/reg/vip/op/mod/master/founder] %[line:slots]||",	-- sminslots
[410]="$UserCommand 1 3 SETTING\\Set Script Maxslots$<%[mynick]> !smaxslots %[line:user/reg/vip/op/mod/master/founder] %[line:slots]||",	-- smaxslots
[420]="$UserCommand 1 3 SETTING\\Set Script Max Hubs$<%[mynick]> !smaxhubs %[line:user/reg/vip/op/mod/master/founder] %[line:hubs]||",	-- smaxshubs
[430]="$UserCommand 1 3 SETTING\\Set Script Slots/Hubs Ratio$<%[mynick]> !sratio  %[line:user/reg/vip/op/mod/master/founder] %[line:slots]||",	-- sratio
[440]="$UserCommand 1 3 SETTING\\Set Script MinShare$<%[mynick]> !sminshare %[line:user/reg/vip/op/mod/master/founder] %[line:share] %[line:mb/gb]||",	-- sminshare
[460]="$UserCommand 1 3 SETTING\\Set Script Maxshare$<%[mynick]> !smaxshare %[line:user/reg/vip/op/mod/master/founder] %[line:share] %[line:mb/gb]||",	-- smaxshare
[470]="$UserCommand 1 3 SETTING\\Set Hub Minshare$<%[mynick]> !hminshare %[line:Number] %[line:b/kb/mb/gb]||",	-- hminshare
[480]="$UserCommand 1 3 SETTING\\Set Max Users$<%[mynick]> !hmaxusr %[line:Number]||",	-- hmaxusr
[490]="$UserCommand 1 3 SETTING\\Set Hub Description$<%[mynick]> !hdesc %[line:Hub_Description]||",	-- hdesc
[500]="$UserCommand 1 3 SETTING\\Set HubName$<%[mynick]> !chhubname %[line:New Hubname]||",	-- chhubname
[510]="$UserCommand 1 3 SETTING\\Set RegServer$<%[mynick]> !regserver %[line:New_Reg_Address]||",	-- regserver
[520]="$UserCommand 1 3 SETTING\\Set Redirect Adress$<%[mynick]> !redirect %[line:Host /Ip]||",	-- redirect
[530]="$UserCommand 1 3 SETTING\\Set Redirect Full on/off$<%[mynick]> !redirectfull %[line:on/off]||",	-- redirectfull
[540]="$UserCommand 1 3 SETTING\\Set Auto Redirect on/off$<%[mynick]> !autoredirect %[line:on/off]||",	-- autoredirect
[550]="$UserCommand 1 3 SETTING\\Set Hub Protect on/off$<%[mynick]> !hubprotect %[line:on/off]||",	-- hubprotect
[560]="$UserCommand 1 3 OTHER\\Show Blocked Users$<%[mynick]> !getblocked||",	-- getblocked
[564]="$UserCommand 1 3 OTHER\\Mass Message Blocked Users$<%[mynick]> !massblocked %[line:Message]||",	-- massblocked
[570]="$UserCommand 1 3 REGISTER\\Reg User$<%[mynick]> !regreg %[nick] %[line:Password]||",	-- regreg
[580]="$UserCommand 1 3 REGISTER\\Reg Vip$<%[mynick]> !regvip %[nick] %[line:Password]||",	-- regvip
[590]="$UserCommand 1 3 REGISTER\\Reg Op$<%[mynick]> !regop %[nick] %[line:Password]||",	-- regop
[594]="$UserCommand 1 3 REGISTER\\Reg Moderator$<%[mynick]> !regmod %[nick] %[line:Password]||",	-- regmop
[600]="$UserCommand 1 3 REGISTER\\Reg Master$<%[mynick]> !regmaster %[nick] %[line:Password]||",	-- regmaster
[604]="$UserCommand 1 3 REGISTER\\Reg Founder$<%[mynick]> !regfounder %[nick] %[line:Password]||",	-- regfounder
[610]="$UserCommand 1 3 REGISTER\\Del Reg User$<%[mynick]> !deluser %[nick]||",	-- deluser
[620]="$UserCommand 1 3 REGISTER\\Upgrade Reg User$<%[mynick]> !upgrade %[nick] %[line:reg/vip/op/mod/master/founder]||",	-- upgrade
[650]="$UserCommand 1 3 SETTING\\ResetCounters$<%[mynick]> !resethstat||",	-- resethstat
[654]="$UserCommand 1 3 LOG\\Clear Nick$<%[mynick]> !clear %[nick]||",	-- clear
[660]="$UserCommand 1 3 LOG\\ShowIplog$<%[mynick]> !showiplog||",	-- showiplog
[670]="$UserCommand 1 3 LOG\\ShowKicklog$<%[mynick]> !showkicklog||",	-- showkicklog
[680]="$UserCommand 1 3 LOG\\ShowBanlog$<%[mynick]> !showbanlog||",	-- showbanlog
[694]="$UserCommand 1 3 LOG\\ShowWarnlog$<%[mynick]> !showwarnlog||",	-- showwarnlog
[700]="$UserCommand 1 3 LOG\\Del Iplog$<%[mynick]> !deliplog||",	-- deliplog
[710]="$UserCommand 1 3 LOG\\Del Kicklog$<%[mynick]> !delkicklog||",	-- delkicklog
[720]="$UserCommand 1 3 LOG\\Del Banlog$<%[mynick]> !delbanlog||",	-- delbanlog
[732]="$UserCommand 1 3 LOG\\Del Warnlog$<%[mynick]> !delwarnlog||",	-- delwarnlog
[734]="$UserCommand 1 3 LOG\\Showlog name/ip$<%[mynick]> !showlog %[line:Name/Ip] ||", 	-- showlog
[740]="$UserCommand 1 3 NORMAL\\Rules$<%[mynick]> !rules||",	-- rules
[750]="$UserCommand 1 3 NORMAL\\Show hubs in network$<%[mynick]> !network||",	-- network
[760]="$UserCommand 1 3 NORMAL\\Show faq about DC++$<%[mynick]> !faq||",	-- faq
[770]="$UserCommand 1 3 NORMAL\\Show your currently IP number$<%[mynick]> !myip||",	-- myip
[780]="$UserCommand 1 3 NORMAL\\Show all your aviable Info$<%[mynick]> !myinfo||",	-- myinfo
[790]="$UserCommand 1 3 NORMAL\\Show script version$<%[mynick]> !version||",	-- version
[800]="$UserCommand 1 3 NORMAL\\Self Register$<%[mynick]> !regme %[line:Password]||",	-- regme
[810]="$UserCommand 1 3 NORMAL\\Change your own password$<%[mynick]> !repass %[line:New Pass]||",	-- repass
[820]="$UserCommand 1 3 NORMAL\\Show users from selected profile$<%[mynick]> !showreg %[line:reg/vip/op/mod/master/founder]||",	-- showreg
[830]="$UserCommand 1 3 NORMAL\\Set away message$<%[mynick]> !away %[line:Message]||",	-- away
[840]="$UserCommand 1 3 NORMAL\\Back after an away$<%[mynick]> !back||",	-- back
[850]="$UserCommand 1 3 NORMAL\\Show all away messages$<%[mynick]> !getaways||",	-- getaways
[860]="$UserCommand 1 3 NORMAL\\Report User to all OP's in PM$<%[mynick]> !report %[nick] %[line:Message]||",	-- report
[870]="$UserCommand 1 3 NORMAL\\Shows Youre Online Time in Hub$<%[mynick]> !myhubtime|| ",	-- myhubtime
[880]="$UserCommand 1 3 NORMAL\\Shows Users whit free slots$<%[mynick]> !slots||",	-- slots
[890]="$UserCommand 1 3 NORMAL\\Shows available redirect addresses$<%[mynick]> !jump||",	-- jump
[900]="$UserCommand 1 3 NORMAL\\Help Commands$<%[mynick]> !help||",	-- help
[910]="$UserCommand 1 3 NORMAL\\Show Inbuild Commands$<%[mynick]> !inbuild %||",	-- inbuild
}

Xan1977
Forum Moderator
Posts: 627
Joined: 2003-06-05 20:15

Post by Xan1977 » 2004-07-21 13:39

I took a once-over look at it, seems fine. Make sure 'Accept custom user commands from hub' is enabled in Advanced Settings (in DC++).

Desiundaground
Posts: 82
Joined: 2004-03-18 15:15

Post by Desiundaground » 2004-07-22 12:48

ok they work but i have added my own bit but the 3 bits i put in only 2 work the ug section doesnt work on other pcs but works on mine here is the code

Code: Select all

[160]="$UserCommand 1 3 [Ã?u] Albums\\[Ã?u]Shows available mainstream albums in hub$<%[mynick]> !albums||", --albums 
[170]="$UserCommand 1 3 [Ã?u] Ug Albums\\[Ã?u]Shows available UG albums in hub$<%[mynick]> !ug||", --ug
[180]="$UserCommand 1 3 [Ã?u] Singles\\[Ã?u]Shows available singles in hub$<%[mynick]> !singles||", -- singles
is this correct??
[/quote]

Xan1977
Forum Moderator
Posts: 627
Joined: 2003-06-05 20:15

Post by Xan1977 » 2004-07-22 13:12

[160] [170] and [180] are already used, pick different line numbers?

Desiundaground
Posts: 82
Joined: 2004-03-18 15:15

Post by Desiundaground » 2004-07-22 17:54

no ive completley chnaged the script 4rm before its lyk this now

Code: Select all

  
-- RightClicker v3.0
--
-- RoboCop 7.X Version <-> Made by Optimus & TiMeTrAVelleR
-- Script only works togheter with RC7.X or Higher
--
-- USE SCRIPT AT YOUR OWN RISK, IT MAY NOT BE COMPATIBLE WITH ALL CLIENTS

-- Editable Settings --

-- 1=on / 0=off
SendTo = {
[0] = 1,   -- Masters
[1] = 1,   -- Operators
[2] = 1,   -- Vips
[3] = 0,   -- Regs
[4] = 1,   -- Moderator
[5] = 1,   -- NetFounder
[-1] = 0,  -- Users
}

sMenu = "RC"

-- End Editable Settings --

assert(dofile("tbl/checklevel.tbl"),"tbl/checklevel.tbl not found")

function OpConnected(user)
	if (SendTo[user.iProfile]==1) then
		GetRightClickComs(user)
		customCMDs(user)
		user:SendData("<Info> Enhanced Right Click Support for [Ã?u] is available")
	end
end

function NewUserConnected(user)
	if (SendTo[user.iProfile]==1) then
		GetRightClickComs(user)
		customCMDs(user)
		user:SendData("<Info> Enhanced Right Click Support for [Ã?u] is available  ")
	end
end

function GetRightClickComs(user) 
	TCopy={}
	for cmd,_ in LevelCheck do
	if LevelCheck[cmd][user.iProfile] == 1 then
	for value,command in RightClick do
	if cmd == value then
	tinsert(TCopy,{value,command})
	end end end end

	sort(TCopy,function(a,b) return (a[1] < b[1]) end)
	for t = 1, getn(TCopy) do
	if TCopy[t] then user:SendData(TCopy[t][2])
	end end TCopy={} collectgarbage() flush()
end

function customCMDs(user)
	--user:SendData("$UserCommand 1 3 zCUSTOM\\Test$<%[mynick]> +test||")	-- test
end

RightClick = {
[10]="$UserCommand 1 3 [Ã?u] Help\\[Ã?u]Rules$<%[mynick]> !rules||",	-- rules
[20]="$UserCommand 1 3 [Ã?u] Help\\[Ã?u]Show hubs in network$<%[mynick]> !network||",	-- network
[30]="$UserCommand 1 3 [Ã?u] Help\\[Ã?u]Show faq about DC++$<%[mynick]> !faq||",	-- faq
[40]="$UserCommand 1 3 [Ã?u] Help\\[Ã?u]Show your currently IP number$<%[mynick]> !myip||",	-- myip
[50]="$UserCommand 1 3 [Ã?u] Help\\[Ã?u]Show all your aviable Info$<%[mynick]> !myinfo||",	-- myinfo
[60]="$UserCommand 1 3 [Ã?u] Help\\[Ã?u]Self Register$<%[mynick]> !regme %[line:Password]||",	-- regme
[70]="$UserCommand 1 3 [Ã?u] Help\\[Ã?u]Change your own password$<%[mynick]> !repass %[line:New Pass]||",	-- repass
[80]="$UserCommand 1 3 [Ã?u] Help\\[Ã?u]Set away message$<%[mynick]> !away %[line:Message]||",	-- away
[90]="$UserCommand 1 3 [Ã?u] Help\\[Ã?u]Back after an away$<%[mynick]> !back||",	-- back
[100]="$UserCommand 1 3 [Ã?u] Help\\[Ã?u]Show all away messages$<%[mynick]> !getaways||",	-- getaways
[110]="$UserCommand 1 3 [Ã?u] Help\\[Ã?u]Report User to all OP's in PM$<%[mynick]> !report %[nick] %[line:Message]||",	-- report
[120]="$UserCommand 1 3 [Ã?u] Help\\[Ã?u]Shows Youre Online Time in Hub$<%[mynick]> !myhubtime|| ",	-- myhubtime
[130]="$UserCommand 1 3 [Ã?u] Help\\[Ã?u]Shows Users whit free slots$<%[mynick]> !slots||",	-- slots
[140]="$UserCommand 1 3 [Ã?u] Help\\[Ã?u]Shows available redirect addresses$<%[mynick]> !jump||",	-- jump
[150]="$UserCommand 1 3 [Ã?u] Help\\[Ã?u]Help Commands$<%[mynick]> !help||", -- help
[160]="$UserCommand 1 3 [Ã?u] Albums\\[Ã?u]Shows available mainstream albums in hub$<%[mynick]> !albums||", --albums 
[170]="$UserCommand 1 3 [Ã?u] Ug Albums\\[Ã?u]Shows available UG albums in hub$<%[mynick]> !ug||", --ug
[180]="$UserCommand 1 3 [Ã?u] Singles\\[Ã?u]Shows available singles in hub$<%[mynick]> !singles||", -- singles
}

Locked