Raised This Month: $ Target: $400
 0% 

[CMD] get_ip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 01-29-2010 , 01:12   [CMD] get_ip
Reply With Quote #1

Here is my .cmd file to start hlds
Code:
if exist cstrike\custom.hpk del /Q cstrike\custom.hpk

START/HIGH/MIN hlds.exe -master -game cstrike +maxplayers 14 +map de_dust2_2x2 +rcon_password **** +sv_lan 0 -noipx -secure -console
I wanna to add +ip command. But my ip is dynamic.
And it is not convenient to change it every time = (

Is there a way to get internet IP adress via CMD language?
Empowers is offline
Send a message via ICQ to Empowers
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 01-29-2010 , 05:18   Re: [CMD] get_ip
Reply With Quote #2

+ip 0.0.0.0
It bind your server on all available ip's.
__________________
ehha is offline
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 01-29-2010 , 05:32   Re: [CMD] get_ip
Reply With Quote #3

Quote:
Originally Posted by ehha View Post
+ip 0.0.0.0
It bind your server on all available ip's.
No, it's not a solution for me. = (

I have 2 ips. Lan ip:192.168.1.2 and internet ip .
I want to bind it only on internet ip. (not lan)

Last edited by Empowers; 01-29-2010 at 05:40.
Empowers is offline
Send a message via ICQ to Empowers
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 01-29-2010 , 06:18   Re: [CMD] get_ip
Reply With Quote #4

Are you behind a router?
Do you have 2 NICs?
The internet IP is from a PPPoE interface?
__________________

Last edited by ehha; 01-29-2010 at 06:22.
ehha is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-29-2010 , 09:19   Re: [CMD] get_ip
Reply With Quote #5

If you are behind a router, you must bind it to your internal IP. The router takes care of forwarding the requests to your internal IP as long as you have your port forwarding set correctly
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 01-29-2010 , 12:39   Re: [CMD] get_ip
Reply With Quote #6

Quote:
Originally Posted by YamiKaitou View Post
If you are behind a router, you must bind it to your internal IP. The router takes care of forwarding the requests to your internal IP as long as you have your port forwarding set correctly
I'm behind bridge =(
Quote:
Originally Posted by ehha View Post
The internet IP is from a PPPoE interface?
Yes
Empowers is offline
Send a message via ICQ to Empowers
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 01-29-2010 , 15:43   Re: [CMD] get_ip
Reply With Quote #7

I don't know how to find one specific IP using "CMD language", I hat a .bat that called ipconfig & then found all the lines containing IP (or any other string), but that doesn't help you.

Why bridge? That's... umm... not good?
I'm sure there's a better alternative to a network bridge, and what's the problem with binding your server to the LAN IP?
__________________
ehha is offline
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 01-29-2010 , 15:57   Re: [CMD] get_ip
Reply With Quote #8

Excuse me, but what's the point of this?
Quote:
if exist cstrike\custom.hpk del /Q cstrike\custom.hpk
I'm just wondering what for you should need to delete this file?
Hammerfallerz is offline
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 01-29-2010 , 16:48   Re: [CMD] get_ip
Reply With Quote #9

Quote:
Originally Posted by ehha View Post
I don't know how to find one specific IP using "CMD language", I hat a .bat that called ipconfig & then found all the lines containing IP (or any other string), but that doesn't help you.
ipconfig gives me my internet ip.

But can you give me the code,
that finds string & writes it in +ip.

Here what ipconfig is answering (sorry I have russian language turned on):
Code:
C:\Documents and Settings\Empowers>ipconfig

Настройка протокола IP для Windows


Подключение по локальной сети - Ethernet адаптер:

        DNS-суффикс этого подключения . . :
        IP-адрес  . . . . . . . . . . . . : 192.168.1.2
        Маска подсети . . . . . . . . . . : 255.255.255.0
        Основной шлюз . . . . . . . . . . : 192.168.1.1

ukrtelecom - PPP адаптер:

        DNS-суффикс этого подключения . . :
        IP-адрес  . . . . . . . . . . . . : 95.134.76.234
        Маска подсети . . . . . . . . . . : 255.255.255.25
        Основной шлюз . . . . . . . . . . : 95.134.76.234
95.134.76.234 is internet ip.

Quote:
Originally Posted by Hammerfallerz View Post
Excuse me, but what's the point of this?


I'm just wondering what for you should need to delete this file?
I have read somewhere that if you will delete this file. When people will connect to server, loading would be much faster. (Don't know is that true or not = )) )

Last edited by Empowers; 01-30-2010 at 02:34.
Empowers is offline
Send a message via ICQ to Empowers
Owyn
Veteran Member
Join Date: Nov 2007
Old 01-30-2010 , 05:45   Re: [CMD] get_ip
Reply With Quote #10

Quote:
Originally Posted by Empowers View Post
No, it's not a solution for me. = (

I have 2 ips. Lan ip:192.168.1.2 and internet ip .
I want to bind it only on internet ip. (not lan)
turn off lan then
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode