Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IP Config for MS4?
#1
Could someone make a simple IP Config tut for MS4 please?
Reply
#2
find
Code:
' Winsock globals
Public Const GAME_IP As String =

Change the ip to whatever you need it to be.
Reply
#3
I think he means IP Config via Ini File
Reply
#4
Why would you want that?
Reply
#5
For an engine? That way, you can set your ip in the client and give the client out and it will connect to your server.

Duh?
Reply
#6
find
Code:
' Winsock globals
Public Const GAME_IP As String =

delete it

replace all
Code:
GAME_IP
with
Code:
ServerIP

make a new textbox on frmmainmenu called txtIP

find
Code:
Private Sub lblLogin_Click()

before
Code:
frmLogin.Visible = True
put
Code:
ServerIp = txtIP.text
Reply
#7
Why not just change Public Const GAME_IP = ??? to Public GAME_IP as string, then set GAME_IP to the ip you set?

It's soooo much easier. Tongue
Reply
#8
Thats what I did, except there was already an unused variable serverip so i decided to use that.

Thanks for trying to improve the tutorial though Perfekt. I appreciate it
Reply
#9
Labmonkey Wrote:Thats what I did, except there was already an unused variable serverip so i decided to use that.

Thanks for trying to improve the tutorial though Perfekt. I appreciate it

Np. I can't see why that unused variable is still there. After all these improvements, they just let that go unnoticed? O.o
Reply
#10
Thank you sooooo much.

EDIT:now no matter what IP I put I get "Not a valid ip address", do I out something like "localhost" anywhere?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)