Max refuses connection


#1

This code:
socket = dotNetObject “System.Net.Sockets.Socket” (dotnetclass “System.Net.Sockets.AddressFamily”).InterNetwork (dotnetclass “System.Net.Sockets.SocketType”).Stream (dotnetclass “System.Net.Sockets.ProtocolType”).Tcp

socket.connect “127.0.0.1” 7500

throws the error…
dotNet runtime exception: “No connection could be made because the target machine actively refused it 127.0.0.1:7500…”

Anyone know why??


#2

I’d check if you have a firewall or antivirus blocking the connection.