| Mirage Source http://miragesource.net/forums/ |
|
| Question about ip http://miragesource.net/forums/viewtopic.php?f=201&t=4424 |
Page 1 of 2 |
| Author: | skillzalot [ Mon Sep 22, 2008 7:37 pm ] |
| Post subject: | Question about ip |
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 |
|
| Author: | Nean [ Mon Sep 22, 2008 7:38 pm ] |
| Post subject: | Re: Question about ip |
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? |
|
| Author: | skillzalot [ Mon Sep 22, 2008 7:42 pm ] |
| Post subject: | Re: Question about ip |
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 |
|
| Author: | Nean [ Mon Sep 22, 2008 7:44 pm ] |
| Post subject: | Re: Question about ip |
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. |
|
| Author: | skillzalot [ Mon Sep 22, 2008 7:45 pm ] |
| Post subject: | Re: Question about ip |
the only new packet I added was your jail command |
|
| Author: | Nean [ Mon Sep 22, 2008 7:47 pm ] |
| Post subject: | Re: Question about ip |
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.
|
|
| Author: | skillzalot [ Mon Sep 22, 2008 7:51 pm ] |
| Post subject: | Re: Question about ip |
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 |
|
| Author: | Nean [ Mon Sep 22, 2008 8:01 pm ] |
| Post subject: | Re: Question about ip |
Make sure your game Ip is 127.0.0.1 And port = 7000 |
|
| Author: | skillzalot [ Mon Sep 22, 2008 8:19 pm ] |
| Post subject: | Re: Question about ip |
You dont get it I want to use my port. |
|
| Author: | Nean [ Mon Sep 22, 2008 8:21 pm ] |
| Post subject: | Re: Question about ip |
skillzalot wrote: You dont get it I want to use my port. You don't get it. That port might not be open. |
|
| Author: | skillzalot [ Mon Sep 22, 2008 8:22 pm ] |
| Post subject: | Re: Question about ip |
It is open cause I can run a xw game on it |
|
| Author: | Nean [ Mon Sep 22, 2008 8:23 pm ] |
| Post subject: | Re: Question about ip |
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. |
|
| Author: | skillzalot [ Mon Sep 22, 2008 8:24 pm ] |
| Post subject: | Re: Question about ip |
and with the ip 127.0.0.1 and port 7000 I get a message that says. You lost your connection with malitar. |
|
| Author: | Rian [ Mon Sep 22, 2008 8:37 pm ] |
| Post subject: | Re: Question about ip |
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) |
|
| Author: | Devilen [ Mon Sep 22, 2008 10:13 pm ] |
| Post subject: | Re: Question about ip |
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. |
|
| Page 1 of 2 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|