Python 3, 170 166166 147 bytes
from socket import*
s=socket(AF_INET,SOCK_STREAM)
s.bind(("",int(input())))
s.listen()
while 1:
c,a=s.accept()
c.send(b"%d\n"%eval(a[0].replace(".","+"))),c.close()
Takes port on stdin, IPv4 only. Works on GNU/Linux (and, I assume, most other unices), which automatically expands "" to "0.0.0.0", not sure about Windows though.