diff --git a/screenstreamer/gui.py b/screenstreamer/gui.py
index e019dcc..aee271d 100644
--- a/screenstreamer/gui.py
+++ b/screenstreamer/gui.py
@@ -86,7 +86,7 @@ class ScreenStreamerGUI(QtWidgets.QMainWindow):
self.format_screensize(displaydata),
self.ui.audioSource.currentData(),
self.ui.protocolSelect.currentText().lower(),
- self.ui.sendto.text()
+ "{}:{}".format(self.ui.sendto.text(), self.ui.streamPort.value())
)
self.streamer.start()
self.ui.streamBtn.setText('Stop Stream')
@@ -104,7 +104,7 @@ class ScreenStreamerGUI(QtWidgets.QMainWindow):
self.receiver = Reciever(
self.ui.protocolSelect.currentText().lower(),
- self.ui.listenAddr.text(),
+ "{}:{}".format(self.ui.listenAddr.text(), self.ui.listenPort.value()),
self.ui.disableAudio.checkState() == 'Checked'
)
self.receiver.start()
diff --git a/ui/mainwindow.ui b/ui/mainwindow.ui
index ddfdf7e..d0c06ca 100644
--- a/ui/mainwindow.ui
+++ b/ui/mainwindow.ui
@@ -20,7 +20,7 @@
0
0
571
- 241
+ 247
@@ -74,11 +74,11 @@
-
- 127.0.0.1:1234
+ 127.0.0.1
- -
+
-
Stream
@@ -95,6 +95,29 @@
-
+ -
+
+
+ Port
+
+
+
+ -
+
+
+ QAbstractSpinBox::PlusMinus
+
+
+ 1
+
+
+ 65535
+
+
+ 1234
+
+
+
@@ -105,7 +128,7 @@
-
-
+
ListenAddress
@@ -113,25 +136,51 @@
-
+
+ 0.0.0.0
+
- 0.0.0.0:1234
+ 0.0.0.0
- -
+
-
Recieve
- -
+
-
Disable Audio
+ -
+
+
+ Port
+
+
+
+ -
+
+
+ QAbstractSpinBox::PlusMinus
+
+
+ 1
+
+
+ 65535
+
+
+ 1234
+
+
+