Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about ip
#1
Well as you know i ask noobie questions but I have been learning. So ya go me. Now what i ask is I change my games client ip with my dyndns one and it does not work. Any ideas/help. Its the only way I can kepp a constant ip
Reply
#2
If you're hosting it from you own computer it has to be 127.0.0.1 because, thats the localhost. If you want others to be able to play on it, then you change the ip to your IP Address ,than distribute, whilst your own client has 127.0.0.1 for the IP. Make sense?
Reply
#3
Well I tried that ip with my port set to 1394 which is my port and it wont let me connect. And with the basic port and ip that come with ms4 the newest it keep saying you lost your connection
Reply
#4
skillzalot Wrote:Well I tried that ip with my port set to 1394 which is my port and it wont let me connect. And with the basic port and ip that come with ms4 the newest it keep saying you lost your connection

You have a packet somewhere, that's not defined in both the Client and Server.
Reply
#5
the only new packet I added was your jail command
Reply
#6
skillzalot Wrote:the only new packet I added was your jail command

Make sure you have a
Code:
CJailPlayer
in both the enumeration in the client and server.
Reply
#7
Here is server
Code:
Option Explicit

' *************
' ** Packets **
' *************

' Packets sent by the server
Public Enum ServerPackets
    SAlertMsg = 1
    SAllChars
    SLoginOk
    SNewCharClasses
    SClassesData
    SInGame
    SPlayerInv
    SPlayerInvUpdate
    SPlayerWornEq
    SPlayerHp
    SPlayerMp
    SPlayerSp
    SPlayerStats
    SPlayerData
    SPlayerMove
    SNpcMove
    SPlayerDir
    SNpcDir
    SPlayerXY
    SAttack
    SNpcAttack
    SCheckForMap
    SMapData
    SMapItemData
    SMapNpcData
    SMapDone
    SSayMsg
    SGlobalMsg
    SAdminMsg
    SPlayerMsg
    SMapMsg
    SSpawnItem
    SItemEditor
    SUpdateItem
    SEditItem
    SSpawnNpc
    SNpcDead
    SNpcEditor
    SUpdateNpc
    SEditNpc
    SMapKey
    SEditMap
    SShopEditor
    SUpdateShop
    SEditShop
    SSpellEditor
    SUpdateSpell
    SEditSpell
    STrade
    SSpells
End Enum

' Packets recieved by the server
Public Enum ClientPackets
    CGetClasses = 1
    CJailPlayer
    CNewAccount
    CDelAccount
    CLogin
    CAddChar
    CDelChar
    CUseChar
    CSayMsg
    CEmoteMsg
    CBroadcastMsg
    CGlobalMsg
    CAdminMsg
    CPlayerMsg
    CPlayerMove
    CPlayerDir
    CUseItem
    CAttack
    CUseStatPoint
    CPlayerInfoRequest
    CWarpMeTo
    CWarpToMe
    CWarpTo
    CSetSprite
    CGetStats
    CRequestNewMap
    CMapData
    CNeedMap
    CMapGetItem
    CMapDropItem
    CMapRespawn
    CMapReport
    CKickPlayer
    CBanList
    CBanDestroy
    CBanPlayer
    CRequestEditMap
    CRequestEditItem
    CEditItem
    CSaveItem
    CRequestEditNpc
    CEditNpc
    CSaveNpc
    CRequestEditShop
    CEditShop
    CSaveShop
    CRequestEditSpell
    CEditSpell
    CSaveSpell
    CSetAccess
    CWhosOnline
    CSetMotd
    CTrade
    CTradeRequest
    CFixItem
    CSearch
    CParty
    CJoinParty
    CLeaveParty
    CSpells
    CCast
    CQuit
End Enum

' ****************
' ** Statistics **
' ****************

' Stats used by Players, Npcs and Classes
Public Enum Stats
    Strength = 1
    Defense
    Speed
    Magic
    ' Make sure Stat_Count is below everything else
    Stat_Count
End Enum

' Vitals used by Players, Npcs and Classes
Public Enum Vitals
    HP = 1
    MP
    SP
    ' Mak sure Vital_Count is below everything else
    Vital_Count
End Enum

' Equipment used by Players
Public Enum Equipment
    Weapon = 1
    Armor
    Helmet
    Shield
    ' Mak sure Equipment_Count is below everything else
    Equipment_Count
End Enum

And here is client
Code:
Option Explicit

' *************
' ** Packets **
' *************

' Packets sent by the client
Public Enum ClientPackets
    CGetClasses = 1
    CJailPlayer
    CNewAccount
    CDelAccount
    CLogin
    CAddChar
    CDelChar
    CUseChar
    CSayMsg
    CEmoteMsg
    CBroadcastMsg
    CGlobalMsg
    CAdminMsg
    CPlayerMsg
    CPlayerMove
    CPlayerDir
    CUseItem
    CAttack
    CUseStatPoint
    CPlayerInfoRequest
    CWarpMeTo
    CWarpToMe
    CWarpTo
    CSetSprite
    CGetStats
    CRequestNewMap
    CMapData
    CNeedMap
    CMapGetItem
    CMapDropItem
    CMapRespawn
    CMapReport
    CKickPlayer
    CBanList
    CBanDestroy
    CBanPlayer
    CRequestEditMap
    CRequestEditItem
    CEditItem
    CSaveItem
    CRequestEditNpc
    CEditNpc
    CSaveNpc
    CRequestEditShop
    CEditShop
    CSaveShop
    CRequestEditSpell
    CEditSpell
    CSaveSpell
    CSetAccess
    CWhosOnline
    CSetMotd
    CTrade
    CTradeRequest
    CFixItem
    CSearch
    CParty
    CJoinParty
    CLeaveParty
    CSpells
    CCast
    CQuit
End Enum

' Packets recieved by the client
Public Enum ServerPackets
    SAlertMsg = 1
    SAllChars
    SLoginOk
    SNewCharClasses
    SClassesData
    SInGame
    SPlayerInv
    SPlayerInvUpdate
    SPlayerWornEq
    SPlayerHp
    SPlayerMp
    SPlayerSp
    SPlayerStats
    SPlayerData
    SPlayerMove
    SNpcMove
    SPlayerDir
    SNpcDir
    SPlayerXY
    SAttack
    SNpcAttack
    SCheckForMap
    SMapData
    SMapItemData
    SMapNpcData
    SMapDone
    SSayMsg
    SGlobalMsg
    SAdminMsg
    SPlayerMsg
    SMapMsg
    SSpawnItem
    SItemEditor
    SUpdateItem
    SEditItem
    SSpawnNpc
    SNpcDead
    SNpcEditor
    SUpdateNpc
    SEditNpc
    SMapKey
    SEditMap
    SShopEditor
    SUpdateShop
    SEditShop
    SSpellEditor
    SUpdateSpell
    SEditSpell
    STrade
    SSpells
End Enum

' ****************
' ** Statistics **
' ****************

' Stats used by Players, Npcs and Classes
Public Enum Stats
    Strength = 1
    Defense
    SPEED
    Magic
    ' Make sure Stat_Count is below everything else
    Stat_Count
End Enum

' Vitals used by Players, Npcs and Classes
Public Enum Vitals
    HP = 1
    MP
    SP
    ' Mak sure Vital_Count is below everything else
    Vital_Count
End Enum

' Equipment used by Players
Public Enum Equipment
    Weapon = 1
    Armor
    Helmet
    Shield
    ' Mak sure Equipment_Count is below everything else
    Equipment_Count
End Enum
Reply
#8
Make sure your game Ip is 127.0.0.1
And port = 7000
Reply
#9
You dont get it I want to use my port.
Reply
#10
skillzalot Wrote:You dont get it I want to use my port.

You don't get it. That port might not be open.
Reply
#11
It is open cause I can run a xw game on it
Reply
#12
skillzalot Wrote:It is open cause I can run a xw game on it

I don't know what to tell you then. Maybe someone else knows whats going on.
Reply
#13
and with the ip 127.0.0.1 and port 7000 I get a message that says. You lost your connection with malitar.
Reply
#14
You can't run two games at the same time on the same port. Using the address 127.0.0.1 should always work, on any port (so long as another program isn't using that port)
Reply
#15
Your trying to use a Dynamic Name pointer from what I can get from the user. So its not a IP like 127.0.0.1 but something more like myname.dyndns.org.

Thats really the only thing I can see that might be the issue. IF you are using Dyndns make you have have WildCards enabled and I would not use the port 1394 personaly i would use a higher range like 7000 it uses. The other thing you want to do is if you have a router that your useing to share your connection make sure you log in and have that port forward the traffic to the correct Internal IP Address.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)