News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Joseman

BattleShips [Symbos]

Started by Joseman, 22:21, 13 May 17

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joseman

Hi @Edoz(MSX)

Today we were trying to play a network (internet) game on symbos (battleship last version), but we have no luck...

Do we need to do something special? is there any need to open ports on the router?




Edoz(MSX)

Hi!

Cool that you give it a try!

If you are playing NOT on a local LAN but via the internet, then YES: if you have a router/firewall in between,  you need to open the port on the "server" side. That means, one SymbOS workstation should run as a server, other as client.

By default i use port 280, which looks like Z80 :) )

So that means that you need to open port 280 on your internet IP, and forward it to your SymbOS "server"
Most routers can do this. That means that your external IP (from your provider) forwards port 280 to your local IP (which is the same as the Symbos, in "Server" mode.)

The client needs to connect to the external IP number (from the server), by default there is no need to open a port on the client side. (Because client takes always a random port number, like windows does, and by default this port is open after a request/respond from the server.

So, it should work. ( i tested it once with prodatron using internet, one client MSX, other CPC)

There is no need to open a port for example if you connect to IRC, or to the dedicated, SYMMSG.EXE chat server, using the client.
(which has a server running on the internet). You should try that first, to see if the network works well.



Joseman

Quote from: Edoz(MSX) on 13:01, 15 May 17

If you are playing NOT on a local LAN but via the internet, then YES: if you have a router/firewall in between,  you need to open the port on the "server" side. That means, one SymbOS workstation should run as a server, other as client.

Yes, i thought that too and open the port on the server side...

But no luck, the server side was "listening to por 280" and the client side "connecting to xxx.xxx.xxx.xxx" but nothing more

any idea that what could be the problem?

if you wanna try with me one conection, let me know!! :)

P.D. we will try the dedicated irc server too...

Edoz(MSX)

Ok! This is very strange.

Could you test the following: Start Battleship in server mode, Enable the checkbox, and fill in a Port number, for server mode, you don't have to define a IP.



Then start SymShell, go to the CMD directory and execute NETSTAT.COM (Which shows you the port in LISTEN mode)



If so, Check your IP, and Gateway, Are those correct? Can you PING the CPC on hostname using your PC?
Then, next try to connect by using your PC with TELNET or PUTTY (Telnet mode) to the IP of your CPC and PORT number.




After you could connect to your CPC using TELNET on you PC you should see a connection like below! If that works, you local network is fine, battleship respond on
the connection and probably you have to look in your router, to check the DMZ and PORT forwarding or Firewall. I cannot check this.




BUT! I FOUND a BUG, which could be your problem. If the port is still in Listing mode you could try a new version which i build today:

IN SymbOS, download the new package: By using WGET (See the URL in the SCREENSHOT!)

After download complete:




Unzip it, By unzip E batship2.zip (You also can do a CRC check in unzip.com , to be sure the download was ok)



After this, Execute this version, And try again! I hope this would help to find the cause.

Please let me know if it was helpfully or not!

Br,
Edoz

Joseman

Hi again!

i downloaded the last version, started on server mode and telnet to the m4 ip

now with netstat appears a foreign address: 168.192.3.0 (why is the ip displayed this way?)

now i need to tell my friend to try again!

anyone wants to try?


Edoz(MSX)

#5
Did you do a telnet from your router? And is that your router IP? If not, than it is a bit strange.
You should see the IP from source and destination.

rpalmer

joseman,

The IP address is displayed that way as it mirrors the 4 byte IPv4 address.

So for 127.0.0.1 is nothing but 7f.00.00.01 in hexadecimal numbers.

rpalmer

arnoldemu

#7
Quote from: Joseman on 11:26, 17 May 17
Hi again!

i downloaded the last version, started on server mode and telnet to the m4 ip

now with netstat appears a foreign address: 168.192.3.0 (why is the ip displayed this way?)

now i need to tell my friend to try again!

anyone wants to try?
That looks like 192.168.0.3 but displayed wrong or interpreted wrong.

That will be an internal network address. Are you and your friend on the same internal network?

If not, you need to give the address of your router (your external ip) and open a port up on the router.

EDIT: Type this into google "whats my ip" to get your external ip.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

arnoldemu

Quote from: Joseman on 10:16, 16 May 17
Yes, i thought that too and open the port on the server side...

But no luck, the server side was "listening to por 280" and the client side "connecting to xxx.xxx.xxx.xxx" but nothing more

any idea that what could be the problem?

if you wanna try with me one conection, let me know!! :)

P.D. we will try the dedicated irc server too...

port 280 is within the registered port range.
You may have more luck with numbers above 49152.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Joseman

#9
it worked!! great game with Edoz!!

(it was a problem with my ip forwarding)

Edoz(MSX)

Yes, very cool to do! This was the first time i played Battleship, and Snake, and chat with the CPC machine.
Very cool! We also found bugs, and snake needs improvements in speed. So i need to update those programs ;)








AxelStone

That chat looks impresive, I'll have to test SymbOS on my CPC  :o

Gryzor

This is all kinds of cool.

Powered by SMFPacks Menu Editor Mod